I'm integrating V8 JavaScript engine inside my C++ application. What are the current options to debug JavaScript code executed inside V8 engine?
I would like to use Visual Studio Code with chrome-debug extension https://github.com/Microsoft/vscode-chrome-debug but can't figure out how to enable remote debugging inside V8 engine?
PS: In V8's embedder guide https://github.com/v8/v8/wiki/Debugging%20Protocol I can see message debug protocol for out-of-process debugging is no longer maintained.
Because vscode-chrome-debug support Node.js debugging I decided to use node.js debug-agent code to expose TCP port (5858 by default) for V8 debug protocol https://github.com/nodejs/node/blob/master/src/debug-agent.cc
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With