Skip to content

Commit 324dfd3

Browse files
committed
fix segfault when breakpoint is inside config/initializers/*.rb
1 parent 05fefb4 commit 324dfd3

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

ext/ruby_debug/ruby_debug.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1832,7 +1832,8 @@ context_frame_file(int argc, VALUE *argv, VALUE self)
18321832
frame = optional_frame_position(argc, argv);
18331833
Data_Get_Struct(self, debug_context_t, debug_context);
18341834

1835-
return(GET_FRAME->info.runtime.cfp->iseq->filename);
1835+
return rb_str_new_cstr(GET_FRAME->file);
1836+
//return(GET_FRAME->info.runtime.cfp->iseq->filename);
18361837
}
18371838

18381839
static int

0 commit comments

Comments
 (0)