Skip to content

Commit 804914a

Browse files
authored
add an error message if trying to enter a compiled function (#151)
1 parent e935b83 commit 804914a

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/Debugger.jl

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,7 @@ function _make_frame(mod, arg)
8686
quote
8787
theargs = $(esc(args))
8888
frame = JuliaInterpreter.enter_call_expr(Expr(:call,theargs...))
89+
frame === nothing && error("failed to enter the function, perhaps it is set to run in compiled mode")
8990
frame = JuliaInterpreter.maybe_step_through_kwprep!(frame)
9091
frame = JuliaInterpreter.maybe_step_through_wrapper!(frame)
9192
JuliaInterpreter.maybe_next_call!(frame)

0 commit comments

Comments
 (0)