User submissions are the sole responsibility of contributors, with TuteeHUB disclaiming liability for accuracy, copyrights, or consequences of use; content is for informational purposes only and not professional advice.
I slightly modified the hello-world.cc sample, importing some code from d8. Then, using websocketpp and asio, I added a WebSocket Server to the program. Also, I used V8 inspector from an embedder standpoint to add a simple implementation for the inspector protocol back-end.
Now, when I start my program and then use Chrome to navigate to chrome-devtools://devtools/bundled/inspector.html?experiments=true&v8only=true&ws=127.0.0.1:9002, I receive the following messages from the CDT:
No matter what stage you're at in your education or career, TuteeHUB will help you reach the next level that
you're aiming for. Simply,Choose a subject/topic and get started in self-paced practice
sessions to improve your knowledge and scores.
manpreet
Best Answer
3 years ago
I slightly modified the
hello-world.ccsample, importing some code fromd8. Then, using websocketpp and asio, I added a WebSocket Server to the program. Also, I used V8 inspector from an embedder standpoint to add a simple implementation for the inspector protocol back-end.Now, when I start my program and then use Chrome to navigate to
chrome-devtools://devtools/bundled/inspector.html?experiments=true&v8only=true&ws=127.0.0.1:9002, I receive the following messages from the CDT:for witch the response is:
then
for this one a notification and a response are sent:
then:
again, a notification and a response sent back to the front-end:
For the moment, I will not add to the question the other messages received from the front-end, and the responses sent. The last exchange is:
My problem: in CDT, the
Sourcestab is empty (and therefore, I can't try to put a breakpoint).My code to inject JS in V8: