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

Can't copy value from the Debugger Variables list (Go/Delve) #1990

Closed
altimac opened this issue Oct 11, 2018 · 7 comments
Closed

Can't copy value from the Debugger Variables list (Go/Delve) #1990

altimac opened this issue Oct 11, 2018 · 7 comments

Comments

@altimac
Copy link

altimac commented Oct 11, 2018

Issue Type: Bug
I'm using the Go delve debugger (remote mode) inside VSCode and right clicking any of the local variables in the debugger (displaying the correct variable values!) only displays a disabled contextual menu where I can't copy (or set) value.

Copying a variable value from the debugger is pretty basic debugging workflow.

Thanks
screen shot 2018-10-11 at 11 26 17

@ramya-rao-a
Copy link
Contributor

Thanks for reporting @altimac

@roblourens Do you know what needs to be done to enable the context menu entries here?

@roblourens
Copy link
Member

@isidorn

@altimac
Copy link
Author

altimac commented Oct 16, 2018

I reported the bug at the wrong place first. @isidorn replied:

Please file this agains the go and delve debugger and tell them they have to support evaluateName property for this actions to be enabled

@isidorn
Copy link
Contributor

isidorn commented Oct 16, 2018

@ramya-rao-a yeah, please support the evaluateName property.

Example: in the casses in the picture the evaluateName is equal to name, however inside the zone object if it had the id property the evaluate name of that would be zone.id
So evaluateName is the full path to get to the variable

@ramya-rao-a
Copy link
Contributor

Thanks @isidorn

Marking this as help-wanted. PRs are most welcome.

Code Pointers:

ramya-rao-a pushed a commit that referenced this issue Nov 1, 2018
* Fixed copying values from variables in debug mode

* fixed missing evaluateName for array type

* Fixed evaluateName

* Formeatting

* Incorporated review comments

* Changed fqn -> fullyQualifiedName

* Slight refactoring
@ramya-rao-a
Copy link
Contributor

This feature is now implemented with #2020

Until I release an update, you can get the fix using the beta version of this extension

@ramya-rao-a
Copy link
Contributor

ramya-rao-a commented Nov 7, 2018

This feature is now available in the latest update to the Go extension (0.6.0)
Thanks to @karthikraobr!

@vscodebot vscodebot bot locked and limited conversation to collaborators Dec 17, 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

4 participants