# Is Juno debugging in Atom broken for Julia 1.5.2?

**URL:** <https://discourse.julialang.org/t/is-juno-debugging-in-atom-broken-for-julia-1-5-2/47865>\
**Category:** General Usage\
**Created:** [October 6, 2020, 3:48pm UTC](https://discourse.julialang.org/t/is-juno-debugging-in-atom-broken-for-julia-1-5-2/47865 "2020-10-06T15:48:36Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![adrpo](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/adrpo/32/11384_2.png) [@adrpo](https://discourse.julialang.org/u/adrpo)\
**Post date:** [October 6, 2020, 3:48pm UTC](https://discourse.julialang.org/t/is-juno-debugging-in-atom-broken-for-julia-1-5-2/47865/1 "2020-10-06T15:48:37Z")

</div>

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!

---

<div class="post-metadata">

**Author:** ![adrpo](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/adrpo/32/11384_2.png) [@adrpo](https://discourse.julialang.org/u/adrpo)\
**Post date:** [October 6, 2020, 3:56pm UTC](https://discourse.julialang.org/t/is-juno-debugging-in-atom-broken-for-julia-1-5-2/47865/2 "2020-10-06T15:56:18Z")

</div>

This is the stack trace I get.

```julia
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

```

---

<div class="post-metadata">

**Author:** ![adrpo](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/adrpo/32/11384_2.png) [@adrpo](https://discourse.julialang.org/u/adrpo)\
**Post date:** [October 6, 2020, 4:08pm UTC](https://discourse.julialang.org/t/is-juno-debugging-in-atom-broken-for-julia-1-5-2/47865/3 "2020-10-06T16:08:04Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![adrpo](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/adrpo/32/11384_2.png) [@adrpo](https://discourse.julialang.org/u/adrpo)\
**Post date:** [October 6, 2020, 4:32pm UTC](https://discourse.julialang.org/t/is-juno-debugging-in-atom-broken-for-julia-1-5-2/47865/4 "2020-10-06T16:32:38Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![rveltz](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/rveltz/32/2707_2.png) [@rveltz](https://discourse.julialang.org/u/rveltz)\
**Post date:** [October 6, 2020, 6:41pm UTC](https://discourse.julialang.org/t/is-juno-debugging-in-atom-broken-for-julia-1-5-2/47865/5 "2020-10-06T18:41:14Z")

</div>

it must be 1.5.2 not 1.15.2

---

<div class="post-metadata">

**Author:** ![adrpo](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/adrpo/32/11384_2.png) [@adrpo](https://discourse.julialang.org/u/adrpo)\
**Post date:** [October 6, 2020, 6:57pm UTC](https://discourse.julialang.org/t/is-juno-debugging-in-atom-broken-for-julia-1-5-2/47865/6 "2020-10-06T18:57:25Z")

</div>

Sure, sorry about that: 1.5.2 🙂
