dbg.vim is vim scipt for debug the program. support mdbg, cdb, gdb, jdb and fdb. (not support pdb now) !!cdb is a command-line debugger for windows. !!mdbg is a command-line debugger for .Net Framework.
-
dbg.vim is requires vimproc and each debuggers.
-
Through the path to each debugger or define the vimrc as follows.
let g:dbg#command_cdb = 'cdb.exe' let g:dbg#command_mdbg= 'C:\Program Files\Microsoft SDKs\Windows\v7.1\Bin\NETFX 4.0 Tools\mdbg.exe' let g:dbg#command_jdb = 'jdb' let g:dbg#command_gdb = 'gdb' let g:dbg#command_fdb = 'fdb' !! let g:dbg#command_python = 'python' !! now not support pdb.
-
start debugger as follow. :Dbg cdb exe-file-path
-
set first breakpoint.
bp main or bp WinMain or bp wWinMain or
-
run the program.
g or Press in command mode.
- start debugger as follow. :Dbg mdbg exe-file-path
-
start debugger as follow :Dbg gdb out-file-path
-
set first breakpoint.
break sorce:line or Press on the break line in command mode.
-
run the program.
run or Press in command mode.
-
start debugger as follow :Dbg jdb Main-Class-Name And input source-code-base-directory.
-
set first breakpoint.
stop in Class.main or Press on the break line in command mode.
-
run the program.
run or Press in command mode.
-
start debugger as follow :Dbg fdb swf-file-path And input source-code-base-directory.
-
set first breakpoint.
break method or break file:line or Press on the break line in command mode.
-
continue the program.
continue or Press in command mode.
gdb mode is a input method like a gdb.
-
start debugger.
-
input gdb command with atmark.
@run @next @step @continue @finish @print xxx @info bt @info locals @info threads @info where @info backtrace @info quit
It is also possible shorthand. > @n > @p ... etc
- <lg;F2>gt; Print variable under the cursor.
- <lg;F5>gt; Continue the program.
- <lg;F6>gt; Show locals variable.
- <lg;F7>gt; Show threads variable.
- <lg;F8>gt; Show callstack.
- <lg;F9>gt; Set breakpoints under the cursor.
- <lg;F10>gt; Next
- <lg;F11>gt; Step
- <lg;S-F11>gt; stepout
xxx
support mdbg (.Net Framework console debugger)
first release