Skip to content

Node debug gives stale variables if evaluation happened #15520

@isidorn

Description

@isidorn
  1. Debug the following program
var text = "some text";
debugger;
  1. In repl or watch expressions do text = "new value"
  2. Notice how the variables view shows a stale value for text - VSCode is sending a variables request but the node debug is responding with stale results

Also happening for node2 @roblourens
We would need to drop all cached variables on evaluation request, though not sure how expensive that is.

Metadata

Metadata

Assignees

Labels

debugDebug viewlet, configurations, breakpoints, adapter issuesupstreamIssue identified as 'upstream' component related (exists outside of VS Code)

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions