Stream: helpdesk (published)

Topic: Find the definition of an anonymous function from the REPL


view this post on Zulip Kyle Daruwalla (Apr 28 2021 at 13:34):

Let's say I get the following result at the REPL:

#70 (generic function with 1 method)

I know #70 was defined in some source file (not at the REPL). How can I find the line number in the source file from #70?

view this post on Zulip Fredrik Ekre (Apr 28 2021 at 13:38):

With https://github.com/timholy/CodeTracking.jl (probably).

view this post on Zulip Sebastian Pfitzner (Apr 28 2021 at 13:39):

you can just call @which and similar macros/functions on it


Last updated: Nov 06 2024 at 04:40 UTC