-
Notifications
You must be signed in to change notification settings - Fork 47
Closed
Description
julia> using StaticArrays, Debugger
julia> x = rand(3, 3);
julia> f(x) = SMatrix{3,3}(x);
julia> @enter f(x)
In f(x) at REPL[5]:1
>1 1 ─ %1 = Core.apply_type($(QuoteNode(SMatrix)), 3, 3)
2 │ %2 = (%1)(x)
3 └── return %2
About to run: (Core.apply_type)(SMatrix, 3, 3)
1|debug> si
In f(x) at REPL[5]:1
1 1 ─ %1 = Core.apply_type($(QuoteNode(SMatrix)), 3, 3)
>2 │ %2 = (%1)(x)
3 └── return %2
About to run: <(SMatrix{3, 3})([0.8045329123290527 0.676540223564384 0.10423972523873204; 0.04143216371402014 0.3196...>
1|debug> si
ERROR: BoundsError: attempt to access 1-element Vector{Any} at index [2]
Stacktrace:
[1] getindex
@ ./array.jl:924 [inlined]
[2] checkname(fdef::Expr, name::Symbol)
@ CodeTracking ~/.julia/packages/CodeTracking/zfc7r/src/utils.jl:8
[3] checkname(fdef::Expr, name::Symbol)
@ CodeTracking ~/.julia/packages/CodeTracking/zfc7r/src/utils.jl:5
[4] isfuncexpr(ex::Expr, name::Symbol)
@ CodeTracking ~/.julia/packages/CodeTracking/zfc7r/src/utils.jl:35
[5] definition(#unused#::Type{String}, method::Method)
@ CodeTracking ~/.julia/packages/CodeTracking/zfc7r/src/CodeTracking.jl:234
[6] locinfo(frame::JuliaInterpreter.Frame)
@ Debugger ~/.julia/packages/Debugger/APRPi/src/locationinfo.jl:10
[7] print_status(io::Base.TTY, frame::JuliaInterpreter.Frame; force_lowered::Bool)
@ Debugger ~/.julia/packages/Debugger/APRPi/src/printing.jl:134
Metadata
Metadata
Assignees
Labels
No labels