On Fri, Mar 4, 2016 at 9:22 PM, Ronuk Raval <[email protected]> wrote: > Hi All, > > We run an embedded V8 on Android and I'd like to go about exposing debugger > hooks that a remote debugger could attach to. > https://github.com/v8/v8/wiki/Debugging%20Protocol says that the message > based debugging API is no longer maintained and to inquire on the mailing > list, hence this post. > > I've done some cursory digging into the API exposed by v8-debug.h but I'm > not seeing any way to feed the VM debug messages as I receive them over a > socket. Am I even looking in the right place? > > For reference, we're tracking branch-heads/4.9 and can move over to 5.0 if > necessary. > > Thanks, > Ronuk
Take a look at the node.js source code, src/debug-agent.cc[0] and lib/_debug_agent.js[1] in particular. There is a lot in there but the gist is that you use: 1. v8::Debug::SendCommand() to drive the debugger, and 2. v8::Debug::SetMessageHandler() to receive debug messages. [0] https://github.com/nodejs/node/blob/v5.7.0/src/debug-agent.cc [1] https://github.com/nodejs/node/blob/v5.7.0/lib/_debug_agent.js -- -- v8-users mailing list [email protected] http://groups.google.com/group/v8-users --- You received this message because you are subscribed to the Google Groups "v8-users" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout.
