termdbg


Ⅰ. 插件描述

Terminal debugger for vim

Ⅱ. 基本信息

创建日期:  2019-02-11
使用用户:  2
Github星:  4
插件作者:  fanhe

Ⅲ. 安装方法

使用Vundle管理器安装

在你的.vimrc下添加:
Plugin 'epheien/termdbg'
… 然后在Vim中运行以下命令:
:source %
:PluginInstall

对于Vundle版本 < 0.10.2,请用上面的Bundle替换Plugin。

使用NeoBundle管理器安装

在你的.vimrc下添加:
NeoBundle 'epheien/termdbg'
… 然后在Vim中运行以下命令:
:source %
:NeoBundleInstall

使用VimPlug管理器安装

在你的.vimrc下添加:
Plug 'epheien/termdbg'
… 然后在Vim中运行以下命令:
:source %
:PlugInstall

使用Pathogen管理器安装

在终端中运行以下命令:
cd ~/.vim/bundle
git clone https://github.com/epheien/termdbg

Ⅳ. 文档说明

# termdbg

Termdbg is a terminal debugger plugin for vim 8.1+ and neovim 0.3.6+.
Currently, termdbg supports pdb, ipdb, lldb, dlv(go Delve).
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+ (+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

Run Termdbg {debugger} {file}

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

添加新评论