File tree Expand file tree Collapse file tree 4 files changed +16
-2
lines changed Expand file tree Collapse file tree 4 files changed +16
-2
lines changed Original file line number Diff line number Diff line change @@ -244,6 +244,7 @@ sub translate {
244
244
245
245
if ($in =~ / ^next$ / ) { @cmds = $self -> next }
246
246
elsif ($in =~ / ^step$ / ) { @cmds = $self -> step }
247
+ elsif ($in =~ / ^stepout$ / ) { @cmds = $self -> stepout }
247
248
elsif ($in =~ / ^cont$ / ) { @cmds = $self -> cont }
248
249
elsif ($in =~ / ^break:(\d +):(.+)$ / ) { @cmds = $self -> break($1 , $2 ) }
249
250
elsif ($in =~ / ^clear:(\d +):(.+)$ / ) { @cmds = $self -> clear($1 , $2 ) }
Original file line number Diff line number Diff line change @@ -49,6 +49,7 @@ debugger uses 'n'.
49
49
=cut
50
50
sub next { ' n' }
51
51
sub step { ' s' }
52
+ sub stepout { ' r' }
52
53
sub cont { ' c' }
53
54
sub break { " f $_ [2]" , " b $_ [1]" }
54
55
sub clear { " f $_ [2]" , " B $_ [1]" }
Original file line number Diff line number Diff line change @@ -83,13 +83,14 @@ change them by editing VimDebug.vim.
83
83
84
84
These are the default key bindings. To change them edit VimDebug.vim.
85
85
86
- <F12> Start the debugger, or toggle the key bindigs .
86
+ <F12> Start the debugger, or toggle the key bindings .
87
87
<F11> Exit the debugger.
88
88
<F10> Restart the debugger. Breakpoints are saved.
89
89
90
90
<F9> Continue.
91
91
<F8> Next.
92
- <F7> Step.
92
+ <F7> Step in.
93
+ <F6> Step out.
93
94
94
95
<Leader>b Set breakpoint on the current line.
95
96
<Leader>c Clear breakpoint on the current line.
Original file line number Diff line number Diff line change @@ -35,6 +35,7 @@ let s:dbgr_keys = [
35
35
\ [" <F9>" , " :DBGRcont<cr>" ],
36
36
\ [" <F8>" , " :DBGRnext<cr>" ],
37
37
\ [" <F7>" , " :DBGRstep<cr>" ],
38
+ \ [" <F6>" , " :DBGRstepout<cr>" ],
38
39
\ [" <Leader>b" , " :DBGRsetBreakPoint<cr>" ],
39
40
\ [" <Leader>c" , " :DBGRclearBreakPoint<cr>" ],
40
41
\ [" <Leader>ca" , " :DBGRclearAllBreakPoints<cr>" ],
@@ -205,6 +206,7 @@ endfunction
205
206
206
207
" Debugger functions.
207
208
209
+ command ! -nargs =0 DBGRstepout call DBGRstepout ()
208
210
command ! -nargs =0 DBGRstep call DBGRstep ()
209
211
command ! -nargs =0 DBGRnext call DBGRnext ()
210
212
command ! -nargs =0 DBGRcont call DBGRcont ()
@@ -234,6 +236,15 @@ function! DBGRstep()
234
236
call s: HandleCmdResult ()
235
237
endfunction
236
238
239
+ function ! DBGRstepout ()
240
+ if ! s: Copacetic ()
241
+ return
242
+ endif
243
+ echo " \r stepout..."
244
+ call s: SocketWrite (" stepout" )
245
+ call s: HandleCmdResult ()
246
+ endfunction
247
+
237
248
function ! DBGRcont ()
238
249
if ! s: Copacetic ()
239
250
return
You can’t perform that action at this time.
0 commit comments