Open ChrisRackauckas opened 3 years ago
How to use https://github.com/JuliaDebug/Cthulhu.jl/pull/469 ?
How to use https://github.com/JuliaDebug/Cthulhu.jl/pull/469 ?
Update Cthulhu, you need version 2.9.3
Thanks for the tip. It works! Can we do this automatically for functions at focus if the arguments are type defined? Or set a package level entry point and call in background periodically?
There's no way to do that at present.
However, If you created an async task that called cthulhu_typed
periodically you could probably get what you want. If you want to do that have a look at _descend
in Cthulhu to see how to get the required information to call cthulhu_typed
. Alternatively, you might be able to pass a fake terminal to descend_code_typed
and then call Revise periodically.
For those not following along closely, now that https://github.com/JuliaDebug/Cthulhu.jl/pull/469 is merged, there is integrated VSCode support for Cthulhu. Simply call Cthulhu.@descend ...
in the VSCode Julia REPL. Inferred types should appear on top of the relevant Julia code. To exit the Cthulhu interface in the REPL, Ctrl-C seems to work.
What are the remaining blockers before closing this issue?
It would be really nice to have a hook like Cthulhu's
@descend
where it could then show all of the relevant type information on each line, and allow clicking into functions. Like a hybrid of Cthulhu and Juno's profiler integration.