VS Code: How to access debug variables from within extension?
I am writing an extension for visual studio code where I want to evaluate the current variables of a javascript debug session. These variables are normally shown when one have open the debug pane under the section VARIABLES . See the attached screenshot. I want to get access to these variables when the user right clicks the editor, but I don't know how. My current extension setting for this is like that: in the package.json I have registered a menu contribution along with a command: "contributes": { "menus": { "editor/context": [{ "command": "extension.showVariables", "group": "navigation" }]