AllocCheck.jl icon indicating copy to clipboard operation
AllocCheck.jl copied to clipboard

Find a way to get source excerpts for REPL code?

Open topolarity opened this issue 8 months ago • 1 comments

julia> @check_allocs foo() = rand(Any[1,1.0]) + true
julia> try foo() catch e e.errors[end] end
Dynamic dispatch in ./REPL[2]:1
  | (source not available)
Stacktrace:
 [1] var"##foo#225"()
   @ Main ./REPL[2]:1

For dynamic dispatches especially, this source information is pretty important.

topolarity avatar Nov 17 '23 14:11 topolarity