-
Notifications
You must be signed in to change notification settings - Fork 119
Prerequisites for setVariable
to work?
#514
Comments
@EricCornelson I think that we lost a handler for this request with your refactoring. |
Got it, I'll take a look |
And @mickaelistria from the error after the handler is fixed, it sounds like |
Sorry, I'm getting a bit lost here ;). About the {"seq":95,"type":"response","request_seq":12,"command":"variables","success":true,"body":{"variables":[{"name":"this","value":"Object","type":"Object","variablesReference":1015,"evaluateName":"this"},{"name":"__dirname","value":"\"/home/mistria/workspace-demo/l\"","variablesReference":0,"evaluateName":"__dirname","type":"string"},{"name":"__filename","value":"\"/home/mistria/workspace-demo/l/blah.js\"","variablesReference":0,"evaluateName":"__filename","type":"string"},{"name":"[[StableObjectId]]","value":"1","variablesReference":0,"evaluateName":"[[StableObjectId]]","type":"number"},{"name":"exports","value":"Object {}","type":"Object","variablesReference":1012,"evaluateName":"exports"},{"name":"module","value":"Module {id: \".\", exports: Object, parent: null, …}","type":"Object","variablesReference":1014,"evaluateName":"module"},{"name":"n","value":"4","variablesReference":0,"evaluateName":"n","type":"number"},{"name":"require","value":"function require(path) { … }","type":"Function","variablesReference":1013,"evaluateName":"require"}]}} The interesting part is {"type":"request","seq":13,"command":"setVariable","arguments":{"variablesReference":0,"name":"n","value":"5","format":{}}} Which seems correct per se: the |
An important thing I forgot to mention: I'm using version 6.7.55 which is extracted transitively from VSCode with node-debug2 1.33.0. |
Another interesting part about this |
Yeah the "unrecognized request" is our bug. The |
Thanks, that's very helpful. I may have some more questions later, but that already unblocks many things on my end. |
Thanks to your hints, I can confirm that one a handler is added for |
I'm embedding this debug adapter (the vscode-node-debug2 more specifically, but I tracked down the issue to this component) in Eclipse IDE.
Most request work fine, however I tried to enable support for
setVariable
, which capability declare is enabled, but I faceIs there some other prerequisite to make
setVariable
work?The js file I'm debugging is a base
and I try to change value when breakpoint is on the 2nd line.
If I tweak the
chromeDebugAdapter.js
file to addThe text was updated successfully, but these errors were encountered: