This project is read-only.

Debug js code running in pure v8

Aug 29, 2014 at 12:37 PM
Hi all,

I have a custom (native, c++) application which embeds v8 and executes some js scripts.
As I've read that NTVS uses the native v8 debug protocol, I was wondering if it's possible to use it to debug the js code I run in my app through the embedded v8 engine.
To set things up, what I have in mind is:
  • enable v8 debugging in my application as explained on v8 documentation
  • load the js files I use in my application into a NTVS project
  • run my application locally and attach the NTVS debugger in "Local Attach" mode as described here, specifing my executable with debugging on, instead of node.exe
Any chance this is going to work?
I simply don't know if there are any node-specific mechanism needed by NTVS for the debugger to work.

Thank you in advance,
Aug 29, 2014 at 8:51 PM
It's not something that we've tried, and it's not officially supported - but provided that the version of V8 you embed talks the same protocol as the one used by Node, I don't see why it wouldn't work. Might be worth a try.