Node.js debugger client and vim driver. Step-by-step debugging from vim.
npm install -g vimdebug
- start your program with debugger enabled
node --debug-brk yourprogram.js
- start agent
node-vim-inspector
connect vim to agent:
vim -nb
or if you have vim already running, type :nbs
in command mode
- CTRL+c - continue
- CTRL+i - step in
- CTRL+o - step over
- CTRL+n - step next
- CTRL+u - move one stack frame up
- CTRL+d - move one stack frame down
- CTRL+b - set breakpoint at current location
TODO:
-do steps 1-3 from one vim command (:ndebug
?)
- live edit
- switch compiled js/original source
- jump to symbol
- eval balloons (only for GUI vim)