sidorares / node-vim-debugger

node.js step by step debugging from vim
561 stars 32 forks source link

Spawn child process with --debug-brk key #6

Closed sidorares closed 10 years ago

sidorares commented 10 years ago

Should work same way as with cli debugger:

vimdebug test.js: spawn "node --debug-brk=[detected free port] test.js" && attach debugger client to it

bonus: `vimdebug -port=12345 -- test.coffee -a -b" spawn coffee --nodejs debug-brk=12345 test.coffee"

Extra bonus: mocha with vimdebug? Mocha helpers (break on first failed tests, use long stacktraces, locate actual test code)?