Debugger stops without hitting a breakpoint

The debugger in VSCode stops despite the fact that there is no breakpoint to stop at. Any idea how to fix this please? See screenshot below (from logging.jl)

… and it does not stop at many breakpoints
… and it kills the REPL if an error occurs

I mostly had to go back to the println debugging style.

Do you see the same problems outside of VSCode? For example when using Debugger.jl from a plain REPL?

It’s pretty hard to say more without an explicit series of steps that reproduce the problem.

1 Like

This is “just” a bug/regression in JuliaInterpreter handling logging statements:

julia> using JuliaInterpreter

julia> f(x) = @info x
f (generic function with 1 method)

julia> @interpret f(2)
ERROR: UndefVarError: REPL[6] not defined
Stacktrace:
 [1] collect_args(::Frame, ::Expr; isfc::Bool) at /home/pfitzseb/.julia/packages/JuliaInterpreter/kDn3E/src/interpret.jl:60
 [2] collect_args at /home/pfitzseb/.julia/packages/JuliaInterpreter/kDn3E/src/interpret.jl:134 [inlined]
 [3] evaluate_call_recurse!(::Any, ::Frame, ::Expr; enter_generated::Bool) at /home/pfitzseb/.julia/packages/JuliaInterpreter/kDn3E/src/interpret.jl:207
 [4] evaluate_call_recurse! at /home/pfitzseb/.julia/packages/JuliaInterpreter/kDn3E/src/interpret.jl:201 [inlined]
 [5] eval_rhs(::Any, ::Frame, ::Expr) at /home/pfitzseb/.julia/packages/JuliaInterpreter/kDn3E/src/interpret.jl:388
 [6] step_expr!(::Any, ::Frame, ::Any, ::Bool) at /home/pfitzseb/.julia/packages/JuliaInterpreter/kDn3E/src/interpret.jl:531
 [7] step_expr!(::Any, ::Frame, ::Bool) at /home/pfitzseb/.julia/packages/JuliaInterpreter/kDn3E/src/interpret.jl:581
 [8] finish!(::Any, ::Frame, ::Bool) at /home/pfitzseb/.julia/packages/JuliaInterpreter/kDn3E/src/commands.jl:14
 [9] finish_and_return! at /home/pfitzseb/.julia/packages/JuliaInterpreter/kDn3E/src/commands.jl:29 [inlined]
 [10] evaluate_call_recurse!(::Any, ::Frame, ::Expr; enter_generated::Bool) at /home/pfitzseb/.julia/packages/JuliaInterpreter/kDn3E/src/interpret.jl:239
 [11] evaluate_call_recurse! at /home/pfitzseb/.julia/packages/JuliaInterpreter/kDn3E/src/interpret.jl:201 [inlined]
 [12] eval_rhs(::Any, ::Frame, ::Expr) at /home/pfitzseb/.julia/packages/JuliaInterpreter/kDn3E/src/interpret.jl:388
 [13] step_expr!(::Any, ::Frame, ::Any, ::Bool) at /home/pfitzseb/.julia/packages/JuliaInterpreter/kDn3E/src/interpret.jl:531
 [14] step_expr!(::Any, ::Frame, ::Bool) at /home/pfitzseb/.julia/packages/JuliaInterpreter/kDn3E/src/interpret.jl:581
 [15] finish!(::Any, ::Frame, ::Bool) at /home/pfitzseb/.julia/packages/JuliaInterpreter/kDn3E/src/commands.jl:14
 [16] finish_and_return! at /home/pfitzseb/.julia/packages/JuliaInterpreter/kDn3E/src/commands.jl:29 [inlined]
 [17] finish_and_return! at /home/pfitzseb/.julia/packages/JuliaInterpreter/kDn3E/src/commands.jl:33 [inlined] (repeats 2 times)
 [18] top-level scope at /home/pfitzseb/.julia/packages/JuliaInterpreter/kDn3E/src/construct.jl:762

Edit: Should be fixed by https://github.com/JuliaDebug/JuliaInterpreter.jl/pull/440.

1 Like