Skip to content

Commit 768689b

Browse files
committed
default (unset) value for stop_frame is -1
1 parent 91c74ff commit 768689b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ext/ruby_debug/ruby_debug.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -996,7 +996,7 @@ debug_event_hook(rb_event_flag_t event, VALUE data, VALUE self, ID mid, VALUE kl
996996
if(debug_context->stack_size == debug_context->stop_frame)
997997
{
998998
debug_context->stop_next = 1;
999-
debug_context->stop_frame = 0;
999+
debug_context->stop_frame = -1;
10001000
/* NOTE: can't use call_at_line function here to trigger a debugger event.
10011001
this can lead to segfault. We should only unroll the stack on this event.
10021002
*/

0 commit comments

Comments
 (0)