Home > debug.vim

debug.vim

Debug.vim is a project mainly written in Vim Script, it's free.

Simple utility to assist in debugging vim scripts

This is a mirror of http://www.vim.org/scripts/script.php?script_id=491

utility to help in debugging vim scripts put this in the plugin directory will add a new menu VIM->Debug->.... menu options DebugOn - turns debug on - will display debug text in VIM scripts DebugOff - turns debug off - will not display debug text in VIM scripts Debug Status - displays debug status in status line Insert Debug Text - insert debug text in vim scripts

usage: eg in following vim script

1 fun! JavaImpGenerate()
2 let impfile = tempname() 3 let currBuff = bufnr("%")

for debugging, insert debug text in above script as follows 1 fun! JavaImpGenerate()
2 call Debug("entering JavaImpGenerate") 3 let impfile = tempname() 4 call Debug("impfile = " . impfile ) 5 let currBuff = bufnr("%") 6 call Debug("currBuff = " . currBuff )

The debugging stubs in lines 2, 4, 6 will run only if Debug status is on.

Previous:ri-browser