{"id":1,"method":"Log.enable"}
{"id":2,"method":"Log.startViolationsReport","params":{"config":[{"name":"longTask","threshold":200},{"name":"longLayout","threshold":30},{"name":"blockedEvent","threshold":100},{"name":"blockedParser","threshold":-1},{"name":"handler","threshold":150},{"name":"recurringHandler","threshold":50}]}}
{"id":3,"method":"Network.enable","params":{"maxTotalBufferSize":10000000,"maxResourceBufferSize":5000000}}
{"id":4,"method":"Page.enable"}
{"id":5,"method":"Page.getResourceTree"}
{"id":6,"method":"Runtime.enable"}
{"id":7,"method":"Debugger.enable"}
{"id":8,"method":"Debugger.setPauseOnExceptions","params":{"state":"none"}}
{"id":9,"method":"Debugger.setAsyncCallStackDepth","params":{"maxDepth":0}}
{"id":10,"method":"DOM.enable"}
{"id":11,"method":"CSS.enable"}
{"id":12,"method":"Target.setAutoAttach","params":{"autoAttach":true,"waitForDebuggerOnStart":true}}
{"id":13,"method":"Profiler.enable"}
{"id":14,"method":"Profiler.setSamplingInterval","params":{"interval":100}}
{"id":15,"method":"ServiceWorker.enable"}
{"error":{"code":-32601,"message":"'Log.enable' wasn't found"},"id":1}
{"error":{"code":-32601,"message":"'Log.startViolationsReport' wasn't found"},"id":2}
{"error":{"code":-32601,"message":"'Network.enable' wasn't found"},"id":3}
{"error":{"code":-32601,"message":"'Page.enable' wasn't found"},"id":4}
{"error":{"code":-32601,"message":"'Page.getResourceTree' wasn't found"},"id":5}
{"method":"Runtime.executionContextCreated","params":{"context":{"id":1,"origin":"","name":""}}}
{"id":6,"result":{}}
{"method":"Debugger.scriptParsed","params":{"scriptId":"22","url":"my_Screen1","startLine":0,"startColumn":0,"endLine":19,"endColumn":0,"executionContextId":1,"hash":"FF07566204EF7A37E97781F777DD9282456E48B3","isLiveEdit":false,"sourceMapURL":"","hasSourceURL":false}}
{"id":22,"method":"Debugger.setBreakpointByUrl","params":{"lineNumber":13,"url":"my_Screen1","columnNumber":39,"condition":""}}
{"id":7,"result":{}}
{"id":8,"result":{}}
{"id":9,"result":{}}
{"error":{"code":-32601,"message":"'DOM.enable' wasn't found"},"id":10}
{"error":{"code":-32601,"message":"'CSS.enable' wasn't found"},"id":11}
{"error":{"code":-32601,"message":"'Target.setAutoAttach' wasn't found"},"id":12}
{"id":13,"result":{}}
{"id":14,"result":{}}
{"error":{"code":-32601,"message":"'ServiceWorker.enable' wasn't found"},"id":15}
{"id":16,"result":{}}
{"error":{"code":-32601,"message":"'Page.setAutoAttachToCreatedPages' wasn't found"},"id":17}
{"error":{"code":-32601,"message":"'Emulation.setScriptExecutionDisabled' wasn't found"},"id":18}
{"error":{"code":-32601,"message":"'Rendering.setShowViewportSizeOnResize' wasn't found"},"id":19}
{"error":{"code":-32601,"message":"'Inspector.enable' wasn't found"},"id":20}
{"id":21,"result":{}}
{"id":22,"result":{"breakpointId":"my_Screen1:13:39","locations":[{"scriptId":"22","lineNumber":13,"columnNumber":39}]}}
Hi Anoop,Thanks for your reply and very sorry for the delay in my reply as I was on vacation and did not get a chance to work on the inspector code.I fixed issue which was a silly mistake from my end as I was allocating the agent variable on stack which go cleaned up once the function returned.Now I could establish connection with the chrome-dev tools client and communicate with the debug server.I am facing an issue here.i) It is not breaking on the first statement, even though I have wait implementedii) I can now stop the execution using halt from the chrome-dev tools. But If I do single-step or step out, the execution just continues (work as continue instead of single step) and again I have to press halt on chrome-dev tools to break the execution.If you can take a look at github.com/hsharsha/v8inspector, would appreciate greatly.Thanks,-Harsha
…
virtual void runMessageLoopOnPause(int contextGroupId) override { | |
this->paused = true; | |
while (this->paused) { | |
this->channel->run_one(); | |
} | |
std::cerr << fmt::format("exiting runMessageLoopOnPause") << std::endl; | |
}
Where run_one is what gives my websocket server a chance to deal with incoming chrome debug protocol messages.
|
--
--
v8-users mailing list
v8-u...@googlegroups.com
http://groups.google.com/group/v8-users
---
You received this message because you are subscribed to a topic in the Google Groups "v8-users" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/v8-users/s_8D-VavUg4/unsubscribe.
To unsubscribe from this group and all its topics, send an email to v8-users+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
To unsubscribe from this group and all its topics, send an email to v8-users+u...@googlegroups.com.
--
--
v8-users mailing list
v8-u...@googlegroups.com
http://groups.google.com/group/v8-users
---
You received this message because you are subscribed to a topic in the Google Groups "v8-users" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/v8-users/s_8D-VavUg4/unsubscribe.
To unsubscribe from this group and all its topics, send an email to v8-users+u...@googlegroups.com.