Ⅰ. 插件描述
Integrated Python debugging within VimⅡ. 基本信息
|
Ⅲ. 安装方法
使用Vundle管理器安装
在你的.vimrc下添加:Plugin '/vimpdb'
… 然后在Vim中运行以下命令:
:source %
:PluginInstall
对于Vundle版本 < 0.10.2,请用上面的Bundle替换Plugin。
使用NeoBundle管理器安装
在你的.vimrc下添加:NeoBundle '/vimpdb'
… 然后在Vim中运行以下命令:
:source %
:NeoBundleInstall
使用VimPlug管理器安装
在你的.vimrc下添加:Plug '/vimpdb'
… 然后在Vim中运行以下命令:
:source %
:PlugInstall
使用Pathogen管理器安装
在终端中运行以下命令:cd ~/.vim/bundle
git clone https://github.com/vim-scripts/VimPdb
Ⅳ. 文档说明
* Tired of debugging Python using print statements?
* Don't like the cumbersome PDB (Python debugger) console?
* Prefer using Vim for coding your Python programs?
VimPdb is the solution - allows debugging Python in an IDE-fashion, right within the Vim editor.
Features:
* Highlighting of currently debugged line and breakpoint lines.
* F5 - Run/continue running.
* F2 - Toggle breakpoint at current line
* Ctrl-F2 / Shift-F2 - Toggle conditional/temporary breakpoint.
* F7 / F8 - Step into/over
* F12 - Print stack trace
* F3 / Ctrl-F3 - Eval/Exec a given statement (in the current debugging context)
* Save/load breakpoints into session files.
* Cross-platform
* And many more... See readme.txt for details
Check out http://code.google.com/p/vimpdb/ for a screenshot.
Important Notes
* It's still considered Beta, so I'm not too sure about its stability or lack of bugs. However, I do appreciate if you could report bugs, suggest features or help out with the known issues (see "Known Issues" section in readme.txt). Email me at vimpdb@gmail.com
* It's possible to easily implement the debugging capabilities for another editor (e.g. Emacs) - you could write a Python class of your own, which inherits from the PdbIDE class, and implements editor-specific functionalities (such as highlighting).