Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Debugging Nodejs V8 in VIM

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..

like image 448
Daniel Khoroshko Avatar asked Aug 01 '17 21:08

Daniel Khoroshko


People also ask

Can you debug in Vim?

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!

How do I debug Node JS locally?

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.

Is a debugging tool for Nodejs?

Node Inspector is a reliable debugger for Node. js apps based on the Blink Developer Tools – a powerful JavaScript debugging interface.


1 Answers

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.

like image 138
Dani Magen Avatar answered Oct 04 '22 02:10

Dani Magen