Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Strange debug behaviour for display in Juno #382

Open
mkborregaard opened this issue Mar 1, 2020 · 0 comments
Open

Strange debug behaviour for display in Juno #382

mkborregaard opened this issue Mar 1, 2020 · 0 comments
Labels
bug Something isn't working

Comments

@mkborregaard
Copy link

When using Julia's debugger to step into display on an AbstractPlotting.scene, I'm getting a strange behaviour. MWE (in Juno):

using AbstractPlotting
p = scatter(1:10);
Juno.@enter display(p)

takes me correctly to https://github.com/JuliaLang/julia/blob/master/base/multimedia.jl#L322 , but stepping through a few times (with "next line") throws an error from JuliaInterpreter:

julia> Juno.@enter display(p)
debug> ERROR: TypeError: in typeassert, expected Type, got JuliaInterpreter.SSAValue
Stacktrace:
 [1] evaluate_call_recurse!(::Any, ::JuliaInterpreter.Frame, ::Expr; enter_generated::Bool) at /Users/michael/.julia/packages/JuliaInterpreter/VxcSp/src/interpret.jl:213
 [2] evaluate_call_recurse! at /Users/michael/.julia/packages/JuliaInterpreter/VxcSp/src/interpret.jl:202 [inlined]
 [3] eval_rhs(::Any, ::JuliaInterpreter.Frame, ::Expr) at /Users/michael/.julia/packages/JuliaInterpreter/VxcSp/src/interpret.jl:387
 [4] step_expr!(::Any, ::JuliaInterpreter.Frame, ::Any, ::Bool) at /Users/michael/.julia/packages/JuliaInterpreter/VxcSp/src/interpret.jl:522
 [5] step_expr! at /Users/michael/.julia/packages/JuliaInterpreter/VxcSp/src/interpret.jl:566 [inlined]
 [6] next_until!(::Any, ::Any, ::JuliaInterpreter.Frame, ::Bool) at /Users/michael/.julia/packages/JuliaInterpreter/VxcSp/src/commands.jl:95
 [7] next_line!(::Any, ::JuliaInterpreter.Frame, ::Bool) at /Users/michael/.julia/packages/JuliaInterpreter/VxcSp/src/commands.jl:173
 [8] debug_command(::Any, ::JuliaInterpreter.Frame, ::Symbol, ::Bool; line::Nothing) at /Users/michael/.julia/packages/JuliaInterpreter/VxcSp/src/commands.jl:409
 [9] debug_command(::Any, ::JuliaInterpreter.Frame, ::Symbol, ::Bool) at /Users/michael/.julia/packages/JuliaInterpreter/VxcSp/src/commands.jl:391
 [10] (::Atom.JunoDebugger.var"#52#54"{Bool,Bool,Bool})() at /Users/michael/.julia/packages/Atom/N5oSJ/src/debugger/stepper.jl:191
 [11] evalscope(::Atom.JunoDebugger.var"#52#54"{Bool,Bool,Bool}) at /Users/michael/.julia/packages/Atom/N5oSJ/src/debugger/stepper.jl:392
 [12] startdebugging(::JuliaInterpreter.Frame, ::Bool; istoplevel::Bool, toggle_ui::Bool) at /Users/michael/.julia/packages/Atom/N5oSJ/src/debugger/stepper.jl:149
 [13] startdebugging(::JuliaInterpreter.Frame, ::Bool) at /Users/michael/.julia/packages/Atom/N5oSJ/src/debugger/stepper.jl:135
 [14] top-level scope at /Users/michael/.julia/packages/Atom/N5oSJ/src/debugger/stepper.jl:50

Without Juno.@enter there is no error from the code.

@KristofferC KristofferC added the bug Something isn't working label Mar 1, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants