Ⅰ. 插件描述
make pyclewn can be installed though vbundle or pathogenⅡ. 基本信息
|
Ⅲ. 安装方法
使用Vundle管理器安装
在你的.vimrc下添加:Plugin 'tracyone/pyclewn-linux'
… 然后在Vim中运行以下命令:
:source %
:PluginInstall
对于Vundle版本 < 0.10.2,请用上面的Bundle替换Plugin。
使用NeoBundle管理器安装
在你的.vimrc下添加:NeoBundle 'tracyone/pyclewn-linux'
… 然后在Vim中运行以下命令:
:source %
:NeoBundleInstall
使用VimPlug管理器安装
在你的.vimrc下添加:Plug 'tracyone/pyclewn-linux'
… 然后在Vim中运行以下命令:
:source %
:PlugInstall
使用Pathogen管理器安装
在终端中运行以下命令:cd ~/.vim/bundle
git clone https://github.com/tracyone/pyclewn_linux
Ⅳ. 文档说明
# Make pyclewn can be installed though vbundle or pathogen
pyclewn is a powerful debug plugin for vim, and I think there a little trouble to install this plugin, so I make this rpos is to make pyclewn can be installed thought Vbunle or pathogen
pyclewn's version:pyclewn-2.2
Current version is not working properly, please use branch 1.11
If you are familiar with python,please help me to get version 2.2 work.
"use vim-plug install pyclewn_linux
Plug 'tracyone/pyclewn_linux,{'branch': 'pyclewn-1.11'}'New feature compare to version 1.11
version 2.2 has following new feature:
- Three clewn buffers are updated by gdb, they list the breakpoints, the backtrace and the threads. One can jump with the <CR> key or the mouse to the corresponding source code line from the
(clewn)_breakpointswindow or switch to the corresponding frame from the(clewn)_backtrace window, or switch to the correponding thread with the(clewn)_threads window. The Ccwindow command has been removed. - All the Vim functions defined by pyclewn that split windows can be overriden.
- A compound watched variable in
(clewn)_variablescan be expanded and collapsed with the <CR> key or the mouse. - The new
Cballoonevalcommand switches on/off the Vim balloon without interfering with the pyclewn key mappings that rely on the Vim w`ballooneval option to be function. - The first optional argument of the :Pyclewn Vim command selects the debugger and the following arguments are passed to the debugger. For example, to debug foobar args with gdb, run the Vim commmand
:Pyclewn gdb --args foobar args. - The new
g:pyclewn_terminalVim global variable allows the pyclewn program started with:Pyclewnto run in a terminal instead of as a daemon, and helps trouble shooting startup problems. - Full gdb completion is now available on Vim command line. See
:help gdb-completion. - The console and the Pyclewn buffers are loaded in windows of a dedicated tab page when the
--windowoption is set to usetab. Seehelp pyclewn-usetab. - The new command
Cexitclewncloses the debugging session and removes the Pyclewn buffers and their windows (issue #20). - Two new key mappings are available in the breakpoints window. Use + to toggle the breakpoint state between enable/disable, and use
<C-K>to delete the breakpoint. - The new
vim.ping()function may be used to check whether an existing Python process may be attached to.
New feature added by myself
- add icon in gvim toolbar

from left to right:
- red triangle action:connect pyclewn-->Map keys ,pop up a gnome-terminal for program output,after this you can execute :Cfile to load program.
- start debug,equal to :Cstart
- X:stop debug close all split windows
- :Cnext
- :Cstep
- :Cstepi
- :Ccontinue
- setpout,:Cfinish
- Load project and start debug,in current dir ".proj" must be exist
- when you are debugging ,press this button,it can create .proj file in current dir which save the info about breakpoint position and how to load the program(such as option and argurements)
key map
- after start pyclewn(red triangle button),press tab equal to :C
<leader>pwequal to :silent! Cdbgvar,create a gdb watched variable on current cursor<space>When the watched variable is a structure or class instance, it can be expanded with the|Cfoldvar|pyclewn command to display all its members and their values as children watched variablesdd: in(clewn)_variablesbuffer,this can delete the watch corresponding variable<leader>ppload proj setting<leader>pcsave current project setting (such as breakpoint position..)
Screenshot
version 1.11

version 2.2
