pygdb


Ⅰ. 插件描述

pygtk interface to gdb in connection with (g)vim

Ⅱ. 基本信息

创建日期:  2008-06-20
使用用户:  1
Github星:  4
插件作者:  Stefan Huber

Ⅲ. 安装方法

使用Vundle管理器安装

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

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

使用NeoBundle管理器安装

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

使用VimPlug管理器安装

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

使用Pathogen管理器安装

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

Ⅳ. 文档说明

pygdb is a pygtk interface to gdb. It offers two terminal windows, one for gdb, one for the process to be debugged. On the top it has standard buttons like run, continue, step in, step over, step out and quit. On a second window you can add watches and breakpoints. Furthermore, you can inspect the backtrace and launch gvim on the current executed line by pressing a button.

pygdb stays synchronized with gvim (by using gvim --servername calls). The package provides a pygdb.vim which enables the user to set (conditional) breakpoints and the current execution line is highlighted as well.

Default key mappings:
F5: Run
F8: Toggle breakpoint
S-F8: Conditional breakpoint
F9: Show breakpoints
S-F9: Load config

The package is in a very young state but I guess it is more or less usable. You may want to give it a try or look for some screenshots at
http://www.cosy.sbg.ac.at/~shuber/code-pygdb.php
at first. This project is somehow similar to vdb (vimscript #1703). The main difference is that vdb tries to integrate gdb completely into vim, in contrast to pygdb. However, under some assumptions on the debugger, other debuggers can be integrated easily as well. (Just inherit the DbgTerminal python class)

P.S. I don't have gvim-6 -- is anyone experiencing that the script works with vim-6 as well?

添加新评论