node-vim-debugger

Node.js debugger client and vim driver. Step-by-step debugging from vim.

install

npm install -g vimdebug

use

  1. start your program with debugger enabled
node --debug-brk yourprogram.js
  1. start agent
node-vim-inspector

connect vim to agent:

vim -nb

or if you have vim already running, type :nbs in command mode

keys

  • 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)

Bitdeli Badge