Skip to content
This repository has been archived by the owner on Jul 15, 2023. It is now read-only.

Feature Request: Enable setting of variables during debugging #1129

Closed
quchunguang opened this issue Aug 2, 2017 · 4 comments
Closed

Feature Request: Enable setting of variables during debugging #1129

quchunguang opened this issue Aug 2, 2017 · 4 comments

Comments

@quchunguang
Copy link

quchunguang commented Aug 2, 2017

I can only show current value of variables by type its name directly.
How can i use dlv commands in vscode, like set x=1?

OS: Ubuntu 17.04 64bit

2017-08-03 06-27-34

@ramya-rao-a
Copy link
Contributor

That is not implemented yet but is a very good feature to have.

We will have to implement the setVariableRequest of the DebugSession and use delve's set command there.

If anyone wants to try implementing this, I can help out.

@ramya-rao-a ramya-rao-a changed the title How to change the value of variable in ''debug console"? Enable setting of variables during debugging Aug 3, 2017
@ramya-rao-a ramya-rao-a changed the title Enable setting of variables during debugging Feature Request: Enable setting of variables during debugging Aug 3, 2017
@radu-matei
Copy link

Hi, @ramya-rao-a!
Has work on this feature start?

Could you give a few pointers on how one would get started with this?

Thanks!

@ramya-rao-a
Copy link
Contributor

@radu-matei You can follow the instructions in the debug README to set up a local dev environment and start debugging the debugger.

ramya-rao-a pushed a commit that referenced this issue Nov 11, 2018
* Add support for setting variables

Fixes #1129

* Propagate the error message
@ramya-rao-a
Copy link
Contributor

ramya-rao-a commented Dec 13, 2018

This feature is now available in the latest version of the Go extension (0.8.0)
Thanks @brycekahle!

@vscodebot vscodebot bot locked and limited conversation to collaborators Dec 26, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants