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

Find a way to get source excerpts for REPL code? #37

Open
topolarity opened this issue Nov 17, 2023 · 1 comment
Open

Find a way to get source excerpts for REPL code? #37

topolarity opened this issue Nov 17, 2023 · 1 comment

Comments

@topolarity
Copy link
Member

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.

@fredrikekre
Copy link
Member

I believe CodeTracking.jl already support this with @code_expr and @code_string.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants