Termdbg is a terminal debugger plugin for vim 8.1+ and neovim 0.3.6+.
Currently, termdbg supports
- pdb (pdb3)
- ipdb (ipdb3)
- lldb
- dlv (go Delve)
- gdb
If you need advanced gdb support, try termdebug (:h termdebug
)
Currently, termdbg just only do these things:
- locate cursor to current running line when debugging
- simply toggle breakpoints in buffer
Need vim 8.1+ (+terminal) and neovim 0.3.6+.
For vim-plug
Plug 'epheien/termdbg'
For manual installation
- Extract the files and put them in your .vim directory
(usually
~/.vim
).
Usage: Termdbg {debugger} {file} [args]
Example: Termdbg ipdb3 a.py
Note: If your debug cursor is not located correctly, execute :TLocateCursor
and it will locate the cursor as correctly as possible.
:TNext
Step over:TStep
Step in:TFinish
Return from current function:TContinue
Continue:TLocateCursor
Locate cursor to running line:TToggleBreak
Toggle breakpoint in current line:TSendCommand
Send command to debugger
None.