You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Considering the fact that the expected use-case of this function is to put it literally in the code (and not pass around as a callback), I think it's safe to limit the stack lookup to only one level.
If we do that, we can then improve the context lookup to walk back on the line-of-code (to some maximum of like, 10) and print those out as the context for the call.
What do you think?
The text was updated successfully, but these errors were encountered:
At the moment, the
dbg
implementation walks up the stack to find a line with"dbg"
in it:pydbg/pydbg.py
Lines 27 to 29 in 4d787cd
Considering the fact that the expected use-case of this function is to put it literally in the code (and not pass around as a callback), I think it's safe to limit the stack lookup to only one level.
If we do that, we can then improve the context lookup to walk back on the line-of-code (to some maximum of like, 10) and print those out as the context for the call.
What do you think?
The text was updated successfully, but these errors were encountered: