Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Right clicking variable in debugger and selecting "Add to Watch" doesn't copy variable name to watch input #838

Closed
daviwil opened this issue Jun 7, 2017 · 3 comments
Assignees
Labels
Milestone

Comments

@daviwil
Copy link
Contributor

daviwil commented Jun 7, 2017

For some reason the variable name is not being transferred to the Watch pane when you click "Add to Watch" in the Variables tree.

Example: https://youtu.be/DxFQ4uf9d7k?t=36m49s

@daviwil daviwil added Area-Debugging Issue-Bug A bug to squash. labels Jun 7, 2017
@daviwil daviwil added this to the June 2017 milestone Jun 7, 2017
@daviwil
Copy link
Contributor Author

daviwil commented Jun 8, 2017

This is caused by a new mandatory parameter in the latest VS Code:

evaluateName attribute mandatory for Add to Watch and Copy Value actions

VS Code previously tried to implement the Add to Watch and Copy Value actions by using the data from the VARIABLES view and a JavaScript-biased heuristic for building expressions that can be used with the evaluate request.

Since this approach does not work for all languages, we've introduced the evaluateName attribute for variables some time ago. It is now mandatory for debug adapters to support the evaluateName attribute if they want that Add to Watch and Copy Value actions work properly.

From latest changelog: https://code.visualstudio.com/updates/v1_13#_tasks

@rkeithhill rkeithhill self-assigned this Jun 8, 2017
@rkeithhill
Copy link
Collaborator

@daviwil
Copy link
Contributor Author

daviwil commented Jun 10, 2017

Sweet, thanks a lot!

@daviwil daviwil modified the milestones: June 2017, 1.3.2 Jun 12, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants