You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If I try to debug a function that I'm also timing using TimerOutputs, only lowered code is displayed, and I cannot step normally through the function.
MWE:
julia>using TimerOutputs
julia>using Debugger
julia> my_timer =TimerOutput()
────────────────────────────────────────────────────────────────────
Time Allocations
─────────────────────── ────────────────────────
Tot /% measured:91.5ms /0.0%4.68MiB /0.0%
Section ncalls time %tot avg alloc %tot avg
────────────────────────────────────────────────────────────────────
────────────────────────────────────────────────────────────────────
julia>@timeit my_timer foo() =beginprintln("hello")
end
foo (generic function with 1 method)
julia>@enterfoo()
In foo() at none:03 │ Core.NewvarNode(:(b₀#233))4 │ Core.NewvarNode(:(accumulated_data#232))5 │ local_to#230 = Main.my_timer6 │ %6= local_to#230>7 │ enabled#231 = Base.getproperty(%6, :enabled)8 │ %8= enabled#2319 └─── goto #3 if not %8102 ── %10= local_to#23011 └─── accumulated_data#232 = (push!)(%10, "foo")
About to run:<getproperty(─────────────────────────────...>1|debug> n
hello
In foo() at none:02810 ┄ %28=@_8===129 └─── goto #12 if not %283011 ─ Base.rethrow()
3112 ┄ %31= val#235>32 └─── return%31
About to run:return1|debug>
julia>
This using Julia-1.11.3, Debugger-0.7.10 and TimerOutputs-0.5.27.
Obvious workaround is to take out the timing while I'm debugging, but that's not ideal especially in a bigger code where there might be many timed functions.
The text was updated successfully, but these errors were encountered:
If I try to debug a function that I'm also timing using TimerOutputs, only lowered code is displayed, and I cannot step normally through the function.
MWE:
This using Julia-1.11.3, Debugger-0.7.10 and TimerOutputs-0.5.27.
Obvious workaround is to take out the timing while I'm debugging, but that's not ideal especially in a bigger code where there might be many timed functions.
The text was updated successfully, but these errors were encountered: