Functions with recursion for mutidispatch

Julia packages often have many different types of functions with the same name to achieve multidispatch, but these functions are usually called recursively, and finally stop at a certain function(an orthorhombic design).
Is there any way to easily check which version of the function is called in each step of the chain of recursive calls?

1 Like

Cthulhu.jl offers @descend to step down into the rabbit hole (and madness).

3 Likes

Thanks a lot! It may give too much details(as you say: madness).Maybe the official of julia should provide a concise solution

For exactly that purpose I had created a small package TraceFuns.jl. Maybe it helps in your case as well.

1 Like

thx, it help me this pkg did help me in some extend.