How to list scope variables in node debugger

I was wondering if there is a way to list all scope variables (and possibly outer scopes) in the node.js. built-in debugger. So far, I have managed to access the global scope with:

debug> repl
> global

but is there a function that lists local region variables or a pointer to a local region?
See the debugger commands and the global object for more information .

+4
source share
1 answer

, cli. , - /lib/_debugger.js, "scope" . 50

+5

Source: https://habr.com/ru/post/1543539/


All Articles