Is Juno debugging in Atom broken for Julia 1.5.2?

Hi all,

I cannot seem to get any debugging to work using latest Atom and Juno client 0.12.6. I always get an:
ERROR: UndefVarError: ModuleWhereTheFunction I run Juno.@run on. Seems to be a bug somewhere in logging.jl when it calls _invoked_shouldlog as it thinks that “group” or “_module” is undefined.

Any ideas on what is going on?

Thanks!

This is the stack trace I get.

julia> using MyModule
julia> Juno.@enter myFunction("arg1", "arg2")
debug> ERROR: UndefVarError: MyModule not defined
Stacktrace:
 [1] collect_args(::JuliaInterpreter.Frame, ::Expr; isfc::Bool) at C:\Users\adrpo33\.julia\packages\JuliaInterpreter\muncv\src\interpret.jl:60   
 [2] collect_args at C:\Users\adrpo33\.julia\packages\JuliaInterpreter\muncv\src\interpret.jl:135 [inlined]
 [3] evaluate_call_recurse!(::Any, ::JuliaInterpreter.Frame, ::Expr; enter_generated::Bool) at C:\Users\adrpo33\.julia\packages\JuliaInterpreter\muncv\src\interpret.jl:208
 [4] evaluate_call_recurse! at C:\Users\adrpo33\.julia\packages\JuliaInterpreter\muncv\src\interpret.jl:202 [inlined]
 [5] eval_rhs(::Any, ::JuliaInterpreter.Frame, ::Expr) at C:\Users\adrpo33\.julia\packages\JuliaInterpreter\muncv\src\interpret.jl:389
 [6] step_expr!(::Any, ::JuliaInterpreter.Frame, ::Any, ::Bool) at C:\Users\adrpo33\.julia\packages\JuliaInterpreter\muncv\src\interpret.jl:532
 [7] step_expr! at C:\Users\adrpo33\.julia\packages\JuliaInterpreter\muncv\src\interpret.jl:582 [inlined]
 [8] finish!(::Any, ::JuliaInterpreter.Frame, ::Bool) at C:\Users\adrpo33\.julia\packages\JuliaInterpreter\muncv\src\commands.jl:14
 [9] finish_and_return! at C:\Users\adrpo33\.julia\packages\JuliaInterpreter\muncv\src\commands.jl:29 [inlined]
 [10] evaluate_call_recurse!(::Any, ::JuliaInterpreter.Frame, ::Expr; enter_generated::Bool) at C:\Users\adrpo33\.julia\packages\JuliaInterpreter\muncv\src\interpret.jl:240
 [11] evaluate_call_recurse! at C:\Users\adrpo33\.julia\packages\JuliaInterpreter\muncv\src\interpret.jl:202 [inlined]
 [12] eval_rhs(::Any, ::JuliaInterpreter.Frame, ::Expr) at C:\Users\adrpo33\.julia\packages\JuliaInterpreter\muncv\src\interpret.jl:389
 [13] step_expr!(::Any, ::JuliaInterpreter.Frame, ::Any, ::Bool) at C:\Users\adrpo33\.julia\packages\JuliaInterpreter\muncv\src\interpret.jl:527 
 [14] step_expr! at C:\Users\adrpo33\.julia\packages\JuliaInterpreter\muncv\src\interpret.jl:582 [inlined]
 [15] next_until!(::Any, ::Any, ::JuliaInterpreter.Frame, ::Bool) at C:\Users\adrpo33\.julia\packages\JuliaInterpreter\muncv\src\commands.jl:91  
 [16] _next_line!(::Any, ::JuliaInterpreter.Frame, ::Bool, ::Int64, ::String) at C:\Users\adrpo33\.julia\packages\JuliaInterpreter\muncv\src\commands.jl:180
 [17] next_line!(::Any, ::JuliaInterpreter.Frame, ::Bool) at C:\Users\adrpo33\.julia\packages\JuliaInterpreter\muncv\src\commands.jl:175
 [18] debug_command(::Any, ::JuliaInterpreter.Frame, ::Symbol, ::Bool; line::Nothing) at C:\Users\adrpo33\.julia\packages\JuliaInterpreter\muncv\src\commands.jl:433
 [19] debug_command(::Any, ::JuliaInterpreter.Frame, ::Symbol, ::Bool) at C:\Users\adrpo33\.julia\packages\JuliaInterpreter\muncv\src\commands.jl:415
 [20] (::Atom.JunoDebugger.var"#54#56"{Bool,Bool,Bool})() at C:\Users\adrpo33\.julia\packages\Atom\9OFfu\src\debugger\stepper.jl:199
 [21] evalscope(::Atom.JunoDebugger.var"#54#56"{Bool,Bool,Bool}) at C:\Users\adrpo33\.julia\packages\Atom\9OFfu\src\debugger\stepper.jl:392      
 [22] startdebugging(::JuliaInterpreter.Frame, ::Bool; istoplevel::Bool, toggle_ui::Bool) at C:\Users\adrpo33\.julia\packages\Atom\9OFfu\src\debugger\stepper.jl:157
 [23] startdebugging(::JuliaInterpreter.Frame, ::Bool) at C:\Users\adrpo33\.julia\packages\Atom\9OFfu\src\debugger\stepper.jl:143
 [24] top-level scope at C:\Users\adrpo33\.julia\packages\Atom\9OFfu\src\debugger\stepper.jl:50

We do have a bunch of @info and @debug in the code, is that the problem?!

Never mind, I answered it myself: Juno barfs on @info or @debug. If I comment these out it works! I will open an Issue on the Juno repo.

1 Like

it must be 1.5.2 not 1.15.2

1 Like

Sure, sorry about that: 1.5.2 :slight_smile: