Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 11 additions & 13 deletions ext/debase_internals.c
Original file line number Diff line number Diff line change
Expand Up @@ -333,13 +333,6 @@ process_line_event(VALUE trace_point, void *data)
tp = TRACE_POINT;
path = rb_tracearg_path(tp);

if(context->stack_size <= context->init_stack_size && context->hit_user_code) {
context->script_finished = 1;
}
if(context->script_finished) {
return;
}

if (is_path_accepted(path)) {

lineno = rb_tracearg_lineno(tp);
Expand Down Expand Up @@ -388,13 +381,18 @@ process_line_event(VALUE trace_point, void *data)
breakpoint = breakpoint_find(breakpoints, path, lineno, trace_point);
if (context->stop_next == 0 || context->stop_line == 0 || breakpoint != Qnil) {
rb_ensure(start_inspector, context_object, stop_inspector, Qnil);
context->stop_reason = CTX_STOP_STEP;
if (breakpoint != Qnil) {
context->stop_reason = CTX_STOP_BREAKPOINT;
rb_funcall(context_object, idAtBreakpoint, 1, breakpoint);
if(context->stack_size <= context->init_stack_size && context->hit_user_code) {
context->script_finished = 1;
}
if(!context->script_finished) {
context->stop_reason = CTX_STOP_STEP;
if (breakpoint != Qnil) {
context->stop_reason = CTX_STOP_BREAKPOINT;
rb_funcall(context_object, idAtBreakpoint, 1, breakpoint);
}
reset_stepping_stop_points(context);
call_at_line(context, file, line, context_object);
}
reset_stepping_stop_points(context);
call_at_line(context, file, line, context_object);
}
}
cleanup(context);
Expand Down
2 changes: 1 addition & 1 deletion lib/debase/version.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
module Debase
VERSION = "0.2.3" unless defined? VERSION
VERSION = "0.2.4" unless defined? VERSION
end