On Thu, Jun 30, 2016 at 5:05 PM, Neil Moore <[email protected]> wrote:
> It says here that "The message based API is no longer maintained.". Does
> that mean that entering JSON commands via v8::Debug::SendCommand is no
> longer supported, or is the message based API something else? I don't have
> any historical context with v8 so I am not sure.
>
> Nevertheless in the version of the source I have I have attempted to use
> v8::Debug::SendCommand. I am attempting to let my embedded v8 communicate
> with node-inspector over a socket. I have so far got the following JSON
> command after trimming off "Content-Length: 173\r\n\r\n":
>
> "{"seq":22,"type":"request","command":"evaluate","arguments":{"expression":"JSON.stringify(process.version).match(/.{1,80}/g).slice()","global":true,"maxStringLength":10000}}"
>
>
> Then I pass it to v8 with v8::Debug::SendCommand.
>
>
> However I don't get any call back on the handler I registered with
> v8::Debug::SetMessageHandler
>
>
> I appreciate that I haven't given a lot of code, but is the general approach
> I am taking expected to work or is this the thing that's not maintained?

It's the thing that is not maintained but it still works well enough
in V8 5.0 and 5.1 that node.js can use it.  Try passing
--trace_debug_json to V8.

-- 
-- 
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.

Reply via email to