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

Variables with the same name do not show up in the Locals Pane #45683

Closed
jramsay opened this issue Mar 13, 2018 · 1 comment
Closed

Variables with the same name do not show up in the Locals Pane #45683

jramsay opened this issue Mar 13, 2018 · 1 comment
Assignees
Labels
debug Debug viewlet, configurations, breakpoints, adapter issues feature-request Request for new features or functionality

Comments

@jramsay
Copy link
Member

jramsay commented Mar 13, 2018

  • VSCode Version: 1.21.0-Insiders (Also occurs in the latest stable)
  • OS Version: Windows 10 (& Mac)

Steps to Reproduce (using VS Live Share extension)

  1. VS (host): Create a new JavaScript -> Blank Node.js Console Application and Share it.
  2. VS Code (guest): Join collaboration session
  3. VS (host): set a breakpoint in app.js @ console.log('Hello world'); and F5
  4. VS Code (guest) : wait until breakpoint Is hit and then step into console.log

Expected: VS code and VS locals windows both contain the same variables (namely: two entries called Closure)

Actual: VS Code only has one o the Closure variables

As per @weinand : yes, variables are identified by their name, so you cannot have two variables on the same level with the same name. Please file an issue against the debug adapter protocol.

@isidorn isidorn assigned weinand and unassigned isidorn Mar 13, 2018
@isidorn isidorn added the debug Debug viewlet, configurations, breakpoints, adapter issues label Mar 13, 2018
@weinand weinand added the feature-request Request for new features or functionality label Mar 13, 2018
@weinand
Copy link
Contributor

weinand commented Mar 13, 2018

I've create DAP request for this.

As a workaround you could add a number to the variable, e.g. "Closure 1" or "Closure #1".

@weinand weinand closed this as completed Sep 11, 2018
@vscodebot vscodebot bot locked and limited conversation to collaborators Oct 26, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
debug Debug viewlet, configurations, breakpoints, adapter issues feature-request Request for new features or functionality
Projects
None yet
Development

No branches or pull requests

3 participants