@info is a task, i suppose. Because of this, execution doesn’t proceed beyond the macro.
function info_here()
@info "done"
end
Juno.@enter info_here()
debug> ERROR: UndefVarError: debug not defined
Stacktrace:
[1] collect_args(::JuliaInterpreter.Frame, ::Expr; isfc::Bool) at C:\Users\aleks\.julia\packages\JuliaInterpreter\kDn3E\src\interpret.jl:60
[2] collect_args at C:\Users\aleks\.julia\packages\JuliaInterpreter\kDn3E\src\interpret.jl:134 [inlined]
[3] evaluate_call_recurse!(::Any, ::JuliaInterpreter.Frame, ::Expr; enter_generated::Bool) at C:\Users\aleks\.julia\packages\JuliaInterpreter\kDn3E\src\interpret.jl:207
[4] evaluate_call_recurse! at C:\Users\aleks\.julia\packages\JuliaInterpreter\kDn3E\src\interpret.jl:201 [inlined]
[5] eval_rhs(::Any, ::JuliaInterpreter.Frame, ::Expr) at C:\Users\aleks\.julia\packages\JuliaInterpreter\kDn3E\src\interpret.jl:388
[6] step_expr!(::Any, ::JuliaInterpreter.Frame, ::Any, ::Bool) at C:\Users\aleks\.julia\packages\JuliaInterpreter\kDn3E\src\interpret.jl:531
[7] step_expr!(::Any, ::JuliaInterpreter.Frame, ::Bool) at C:\Users\aleks\.julia\packages\JuliaInterpreter\kDn3E\src\interpret.jl:581
[8] finish!(::Any, ::JuliaInterpreter.Frame, ::Bool) at C:\Users\aleks\.julia\packages\JuliaInterpreter\kDn3E\src\commands.jl:14
[9] finish_and_return! at C:\Users\aleks\.julia\packages\JuliaInterpreter\kDn3E\src\commands.jl:29 [inlined]
[10] evaluate_call_recurse!(::Any, ::JuliaInterpreter.Frame, ::Expr; enter_generated::Bool) at C:\Users\aleks\.julia\packages\JuliaInterpreter\kDn3E\src\interpret.jl:239
[11] evaluate_call_recurse! at C:\Users\aleks\.julia\packages\JuliaInterpreter\kDn3E\src\interpret.jl:201 [inlined]
[12] eval_rhs(::Any, ::JuliaInterpreter.Frame, ::Expr) at C:\Users\aleks\.julia\packages\JuliaInterpreter\kDn3E\src\interpret.jl:388
[13] step_expr!(::Any, ::JuliaInterpreter.Frame, ::Any, ::Bool) at C:\Users\aleks\.julia\packages\JuliaInterpreter\kDn3E\src\interpret.jl:526
[14] step_expr! at C:\Users\aleks\.julia\packages\JuliaInterpreter\kDn3E\src\interpret.jl:581 [inlined]
[15] next_until!(::Any, ::Any, ::JuliaInterpreter.Frame, ::Bool) at C:\Users\aleks\.julia\packages\JuliaInterpreter\kDn3E\src\commands.jl:91
[16] _next_line!(::Any, ::JuliaInterpreter.Frame, ::Bool, ::Int64, ::String) at C:\Users\aleks\.julia\packages\JuliaInterpreter\kDn3E\src\commands.jl:180
[17] next_line!(::Any, ::JuliaInterpreter.Frame, ::Bool) at C:\Users\aleks\.julia\packages\JuliaInterpreter\kDn3E\src\commands.jl:175
[18] debug_command(::Any, ::JuliaInterpreter.Frame, ::Symbol, ::Bool; line::Nothing) at C:\Users\aleks\.julia\packages\JuliaInterpreter\kDn3E\src\commands.jl:433
[19] debug_command(::Any, ::JuliaInterpreter.Frame, ::Symbol, ::Bool) at C:\Users\aleks\.julia\packages\JuliaInterpreter\kDn3E\src\commands.jl:415
[20] (::Atom.JunoDebugger.var"#54#56"{Bool,Bool,Bool})() at C:\Users\aleks\.julia\packages\Atom\MxsDb\src\debugger\stepper.jl:199
[21] evalscope(::Atom.JunoDebugger.var"#54#56"{Bool,Bool,Bool}) at C:\Users\aleks\.julia\packages\Atom\MxsDb\src\debugger\stepper.jl:392
[22] startdebugging(::JuliaInterpreter.Frame, ::Bool; istoplevel::Bool, toggle_ui::Bool) at C:\Users\aleks\.julia\packages\Atom\MxsDb\src\debugger\stepper.jl:157
[23] startdebugging(::JuliaInterpreter.Frame, ::Bool) at C:\Users\aleks\.julia\packages\Atom\MxsDb\src\debugger\stepper.jl:143
[24] top-level scope at C:\Users\aleks\.julia\packages\Atom\MxsDb\src\debugger\stepper.jl:50
What’s the “debug”, which isn’t defined? It’s “debug.jl”, where function was defined.
What do i do with this? Meanwhile, i can replace the macro with print/println.