You need to issue backtrace / frame / scope / scopes requests - 
see https://code.google.com/p/v8-wiki/wiki/DebuggerProtocol#Request_backtrace

You can use built-in debugger client for this ( ` require("_debugger") ` ) 
or npm modules - such as https://github.com/node-inspector/v8-debug or 
https://github.com/sidorares/v8-debugger-protocol

You can also access this information from script itself by talking to debug 
agent object ( you need to use "expose_debug_as" switch, for example node 
--expose_debug_as=v8debug to see v8debug reference in a global scope )
This is example to list all variables on 
exception: https://gist.github.com/sidorares/9181766
And example how to connect using built-in 
debugger: https://gist.github.com/sidorares/5bf04ccfb86aee6897fe

Andrey

On Friday, 30 January 2015 00:51:33 UTC+11, Leo Cono wrote:
>
>   
>
> <http://stackoverflow.com/questions/28216265/how-can-i-programmatically-access-v8-debugger-variables-list#>
>  
>   
> I am writing an AOP Container. I want to get a list of objects and 
> functions contained in the app.js script. I can see that all of this is 
> available with NodeClipse V8 Debugger Variables list.
>
> Question is: what code do I need to write to have access to the V8 
> Debugger Variables list?
>
> Thanks, Leo
>

-- 
Job board: http://jobs.nodejs.org/
New group rules: 
https://gist.github.com/othiym23/9886289#file-moderation-policy-md
Old group rules: 
https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines
--- 
You received this message because you are subscribed to the Google Groups 
"nodejs" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/nodejs/613fece2-ba21-43a5-80a1-5941f842cece%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to