2013-12-23 23:37:18 +02:00
|
|
|
|
|
|
|
|
2013-12-27 23:52:57 +02:00
|
|
|
command! -nargs=1 VBGrawWrite call vebugger#writeLine(<q-args>)
|
2014-02-08 02:33:18 +02:00
|
|
|
command! -nargs=0 VBGkill call vebugger#killDebugger()
|
|
|
|
|
2013-12-27 23:52:57 +02:00
|
|
|
command! -nargs=0 VBGstepIn call vebugger#setWriteActionAndPerform('std','flow','stepin')
|
|
|
|
command! -nargs=0 VBGstepOver call vebugger#setWriteActionAndPerform('std','flow','stepover')
|
|
|
|
command! -nargs=0 VBGstepOut call vebugger#setWriteActionAndPerform('std','flow','stepout')
|
|
|
|
command! -nargs=0 VBGcontinue call vebugger#setWriteActionAndPerform('std','flow','continue')
|
2013-12-28 00:08:42 +02:00
|
|
|
|
2014-05-14 21:52:55 +03:00
|
|
|
command! -nargs=0 VBGtoggleTerminalBuffer call vebugger#toggleTerminalBuffer()
|
2013-12-28 22:23:33 +02:00
|
|
|
command! -nargs=+ VBGtoggleBreakpoint call vebugger#std#toggleBreakpoint(<f-args>)
|
|
|
|
command! -nargs=0 VBGtoggleBreakpointThisLine call vebugger#std#toggleBreakpoint(expand('%:~:.'),line('.'))
|
|
|
|
command! -nargs=0 VBGclearBreakpints call vebugger#std#clearBreakpoints()
|
2013-12-28 00:17:31 +02:00
|
|
|
|
2014-01-18 00:36:13 +02:00
|
|
|
command! -nargs=1 VBGeval call vebugger#std#eval(<q-args>)
|
|
|
|
command! -nargs=0 VBGevalWordUnderCursor call vebugger#std#eval(expand('<cword>'))
|
2014-05-16 23:58:02 +03:00
|
|
|
command! -nargs=1 VBGexecute call vebugger#std#execute(<q-args>)
|
2014-01-18 00:36:13 +02:00
|
|
|
|
2014-05-16 23:31:09 +03:00
|
|
|
command! -range -nargs=0 VBGevalSelectedText call vebugger#std#eval(vebugger#util#get_visual_selection())
|
2014-05-16 23:58:02 +03:00
|
|
|
command! -range -nargs=0 VBGexecuteSelectedText call vebugger#std#execute(vebugger#util#get_visual_selection())
|
2014-01-18 00:36:13 +02:00
|
|
|
|
2014-05-17 19:23:15 +03:00
|
|
|
command! -nargs=+ -complete=file VBGstartGDB call vebugger#gdb#start([<f-args>][0],{'args':[<f-args>][1:]})
|
2014-05-16 23:31:09 +03:00
|
|
|
command! -nargs=1 -complete=file VBGattachGDB call vebugger#gdb#searchAndAttach(<q-args>)
|
2014-05-17 19:23:15 +03:00
|
|
|
command! -nargs=+ -complete=file VBGstartRDebug call vebugger#rdebug#start([<f-args>][0],{'args':[<f-args>][1:]})
|
|
|
|
command! -nargs=+ -complete=file VBGstartPDB call vebugger#pdb#start([<f-args>][0],{'args':[<f-args>][1:]})
|
2014-01-18 00:36:13 +02:00
|
|
|
|
2013-12-28 00:17:31 +02:00
|
|
|
if exists('g:vebugger_leader')
|
|
|
|
if !empty(g:vebugger_leader)
|
|
|
|
for s:mapping in items({
|
|
|
|
\'i':'VBGstepIn',
|
|
|
|
\'o':'VBGstepOver',
|
|
|
|
\'O':'VBGstepOut',
|
2013-12-28 22:23:33 +02:00
|
|
|
\'c':'VBGcontinue',
|
2014-05-14 21:52:55 +03:00
|
|
|
\'t':'VBGtoggleTerminalBuffer',
|
2014-01-18 00:36:13 +02:00
|
|
|
\'b':'VBGtoggleBreakpointThisLine',
|
2014-05-16 18:03:05 +03:00
|
|
|
\'B':'VBGclearBreakpints',
|
2014-05-14 22:52:01 +03:00
|
|
|
\'e':'VBGevalWordUnderCursor',
|
2014-05-14 22:58:02 +03:00
|
|
|
\'E':'exe "VBGeval ".input("VBG-Eval> ")',
|
2014-05-16 23:58:02 +03:00
|
|
|
\'x':'exe "VBGexecute ".getline(".")',
|
|
|
|
\'X':'exe "VBGexecute ".input("VBG-Exec> ")',
|
2014-05-17 00:01:12 +03:00
|
|
|
\'<M-w>':'exe "VBGrawWrite ".input("VBG> ")'})
|
2013-12-28 00:17:31 +02:00
|
|
|
exe 'nnoremap '.g:vebugger_leader.s:mapping[0].' :'.s:mapping[1].'<Cr>'
|
|
|
|
endfor
|
2014-01-18 00:36:13 +02:00
|
|
|
for s:mapping in items({
|
2014-05-14 22:52:01 +03:00
|
|
|
\'e':'VBGevalSelectedText',
|
2014-05-17 00:01:12 +03:00
|
|
|
\'x':'VBGexecuteSelectedText'})
|
2014-01-18 00:36:13 +02:00
|
|
|
exe 'vnoremap '.g:vebugger_leader.s:mapping[0].' :'.s:mapping[1].'<Cr>'
|
|
|
|
endfor
|
2013-12-28 00:17:31 +02:00
|
|
|
endif
|
|
|
|
endif
|