├── .gitignore ├── README.md ├── autoload ├── nodeinspect.vim └── nodeinspect │ ├── backtrace.vim │ ├── config.vim │ ├── repl.vim │ ├── treectl.vim │ ├── utils.vim │ └── watches.vim ├── doc ├── tags └── vim-node-inspect.txt ├── nodejs-inspect ├── .eslintrc.js ├── lib │ └── chrome-remote-interface.js ├── package-lock.json ├── package.json └── src │ ├── child.js │ ├── find_port.js │ ├── helpers.js │ ├── inspector.js │ ├── main.js │ ├── node-repl.js │ ├── nvim-bridge.js │ ├── vim-events.js │ └── vim-node-inspector.js ├── plugin └── nodeinspect.vim └── tags /.gitignore: -------------------------------------------------------------------------------- 1 | # breakpoints/config settings files 2 | breakpoints 3 | vim-node-config.json 4 | vim-node-session.json 5 | node_modules 6 | 7 | # Sometimes I'm on Mac 8 | .DS_Store 9 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # vim-node-inspect 2 | Interactive node debugger for (n)vim. 3 | 4 | ## Description 5 | Node debugging capabilities for (n)vim using the devtools protocol. 6 | 7 | 8 | [![asciicast](https://asciinema.org/a/NOCL8Fc3LcQjVDD0CIR08I698.svg)](https://asciinema.org/a/NOCL8Fc3LcQjVDD0CIR08I698) 9 | 10 | ## Requirements 11 | Vim**8.1+**/Recent Neovim. 12 | Node in the path. 13 | 14 | ## Installation 15 | Install with your favorite package manager. For vim-plug its 16 | ``` 17 | Plug 'eliba2/vim-node-inspect' 18 | ``` 19 | 20 | ## How to use 21 | 22 | Use the plugin to start a script with *NodeInspectStart*/*NodeInspectRun* or attach to an already running script using *NodeInspectConnect*. Additional configuration can be set with the vim-node-config.json configuration file. 23 | 24 | For full documentation see `:h vim-node-inspect`. 25 | 26 | ### W/O A configuration file ### 27 | 28 | Use NodeInspectStart or NodeInspectRun which starts the script in the current buffer using `node --inspect