Print a call stack with variables and return values #119
-
Use-case: figure out how a specific piece of code (function) was called in a complex codebase. How I did that in the past: inserted a snippet like this What is not sufficient: without knowing the arguments and return values for each call, it is hard to reason about the differences between multiple calls of the target function Question: how can I achieve something like this using python-hunter? I.e. show |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
@ionelmc Sorry for nagging, but do you mind looking at this question as well? I doubt it is possible to achieve, but maybe you have some ideas. |
Beta Was this translation helpful? Give feedback.
It is possible in 3 ways:
source_has='myfunc('
orfullsource_has='myfunc('
). Obviously this will not trigger in scenarios where your function is passed around as a variable.