vim-debugger


Ⅰ. 插件描述

:feet: Vim script debugger :bug:

Ⅱ. 基本信息

创建日期:  2016-01-17
使用用户:  3
Github星:  48
插件作者:  haya14busa

Ⅲ. 安装方法

使用Vundle管理器安装

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

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

使用NeoBundle管理器安装

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

使用VimPlug管理器安装

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

使用Pathogen管理器安装

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

Ⅳ. 文档说明

:bug: vim-debugger

vim-debugger is a Vim script debugger.

[The APIs might change]

:debug improved

https://gyazo.com/926142136e0429f032efabbc8e5e3c6c

Commands

commanddescription
:DebugOnturn on debugging commands
:Debuggeradd breakpoint
>Currentshow current line and function in debug-mode with syntax highlight
>Break {lnum}add break point to {lnum} in a current function
>Fileshow current file in debug-mode
>SIDshow <SID> in debug-mode
>DebugHelpshow help for debug-mode
>Sfuncslist script-local functions in debug-mode

:feet: StackTrace

:StackTrace function vitalizer#command[37]..vitalizer#vitalize[69]..<SNR>210_search_dependence[20]..<SNR>211_import[11]..<SNR>211__import[20]..<SNR>211__build_module[18]..<SNR>218__vital_loaded[2]..<SNR>211_import[11]..<SNR>211__import: line    6:

https://gyazo.com/e3f70551a4ce1ab1f614542a4fac0921

commanddescription
:StackTrace {throwpoint}show stacktrace
:CallStack {id}get callstack and save it as {id}
:CallStackReport {id}report {id} callstack

添加新评论