epheien / termdbg

Terminal debugger for vim

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

termdbg

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

Install

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

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.

Commands

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

Options

None.

Screenshots

termdbg

About

Terminal debugger for vim

License:MIT License


Languages

Language:Vim Script 95.7%Language:Python 4.3%