Is there currently an option to debug v8 in vim?
In v8 they deprecated old options --debug and --debug-brk and node-vim-debugger doesn't seem to know the new protocol..
Start a debug session In Vim, open the perl script to debug and press <F5>. From there, you have 20 seconds to launch the web page through a browser. If all went well, 3 new windows open in Vim: you are in debug mode!
Open the starting file (typically index. js ), activate the Run and Debug pane, and click the Run and Debug Node. js (F5) button. The debugging screen is similar to Chrome DevTools with a Variables, Watch, Call stack, Loaded scripts, and Breakpoints list.
Node Inspector is a reliable debugger for Node. js apps based on the Blink Developer Tools – a powerful JavaScript debugging interface.
It's a bit old, but searching for a solution myself I've found this: https://github.com/eliba2/vim-node-inspect . Looks in development, but I can successfully connect and debug my docker containers with it.
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