Search code examples
node.jsdebuggingprotocolsv8javascript-debugger

How to send HTTP requests to the v8 debugger?


The V8 javascript engine implements this debugger protocol. I start V8 (node.js) and I can connect through the browser to the open port (5858). What is the format of a request that needs to be send to the V8 debugger? Is is a GET or POST?

The only thing that the mentioned page says is: "each packet [...] is transmitted as a string value"

Give me please one example request made one of: curl, node.js, or the browser.


Solution

  • I have opened this issue here to ask for help, maybe the joyent guys can spot the mistake in what I am trying to do. I will update this answer when I "get a valid response" (either from joyent or from the debugger ;) )

    EDIT: I have also asked this on the node mailing list and received this relevant answer

    Summary: don't expect standard (restless) HTTP request-response behavior. You would have to send/test the request using other tools (node-request/telnet). This is because the V8 debugger leaves the connection open and sends multiple responses over it.