Terminal debugger for vim
Branch: master
Clone or download
eph eph
eph and eph tune readme
Latest commit 04710aa Feb 13, 2019
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
autoload
plugin
README.md

README.md

termdbg

Termdbg is a terminal debugger plugin for vim 8.1 and later.
Currently, termdbg only supports pdb and ipdb, if you need gdb support, try termdebug (:h termdebug)

Currently, termdbg just only do these things:

  • locate cursor to current runing line when debugger
  • simply toggle breakpoints in buffer

Install

Need vim 8.1 and later and compiled with +terminal feature.

For vim-plug

Plug 'epheien/termdbg'

For manual installation

  • Extract the files and put them in your .vim directory (usually ~/.vim).

Usage

Run TermdbgPdb {pyfile}

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

Options

call s:InitVariable('g:termdbg_pdb_prog',   'pdb')
call s:InitVariable('g:termdbg_pdb3_prog',  'pdb3')
call s:InitVariable('g:termdbg_ipdb_prog',  'ipdb')
call s:InitVariable('g:termdbg_ipdb3_prog', 'ipdb3')

Screenshots

termdbg