diff options
Diffstat (limited to 'lib/debug.rb')
-rw-r--r-- | lib/debug.rb | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/debug.rb b/lib/debug.rb index 0caeecb00c..9275b47cd9 100644 --- a/lib/debug.rb +++ b/lib/debug.rb @@ -700,9 +700,11 @@ EOHELP @line = line case event when 'line' + p [line, @stop_next] frame_set_pos(file, line) if !@no_step or @frames.size == @no_step @stop_next -= 1 + @stop_next = 0 if @stop_next < 0 elsif @frames.size < @no_step @stop_next = 0 # break here before leaving... else |