Reputation: 4668
I was wondering if there was a way to list all scope variables (and possibly outer scopes as well) in the built in node.js debugger. So far I've managed to access the global scope using:
debug> repl
> global
but is there a function that lists local scope variables or a pointer to the local scope?
See the debugger commands and global object for more info.
Upvotes: 5
Views: 1475
Reputation: 25446
no, currently it's not implemented in built in cli debugger. If you really need it I encourage you to try and add support yourself - the code is in /lib/_debugger.js
and command is "scope". It's doable in less than 50 lines of code
Upvotes: 5