Vimspector embeds a Debug Adapter Protocol client in Vim or Neovim. It launches debuggers, shows variables, stacks, watches, and a debug console in editor windows.
Overview
Vimspector brings IDE-style debugging into Vim using the same debug adapters Visual Studio Code relies on. You configure launches in a .vimspector.json profile, install language-specific gadgets, and control execution from dedicated UI windows inside a new tab page.
Supported workflows include breakpoints, conditional and logpoints, exception and data breakpoints, stepping, run-to-cursor, attach and PID picking, remote launch, and multiple concurrent sessions. Locals, globals, watches with autocompletion, hover evaluation, disassembly, memory hex dumps, and stack navigation are available depending on the adapter.
Gadgets for C and C++, Rust, Python, Go, Tcl, Node.js, Java, PHP, .NET, and others can be installed via :VimspectorInstall or the installgadget.py helper, which downloads adapters and prepares binaries. Any VS Code-compatible adapter can be wired manually following project wiki guidance.
Requirements include Vim 8.2 huge builds with Python 3.10+ or Neovim 0.8 with Python, on Linux, macOS Mojave or later, or experimental Windows support. Neovim lacks mouse hover balloons, so mappings such as VimspectorBalloonEval expose values in popups instead.
The plugin is installed like other Vim packages or through plugin managers, then loaded with packadd in your vimrc alongside optional standard mappings.
Key features
- Debug Adapter Protocol integration
- Breakpoints and conditional breakpoints
- Variables, watches, and stack panes
- Interactive debug console
- Disassembly and memory dump views
- Multi-session debugging
- Embedded terminal debuggee launch
- Gadget installer commands
Use cases
- Debugging C++ inside Vim
- Python development with graphical debugger
- Go and Node.js breakpoint debugging
- Remote attach and PID debugging
- Vim-based IDE debugging without leaving editor