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
# sample.py
from time import sleep
def foo():
...
def main():
while True:
with open("sample.py") as f:
content = f.read()
print("fooo")
foo()
sleep(3)
main()
The only function I see is the one defined in the script. I would expect that calls for open() and print() to show up.
How to trace all function invocations?
Can you build stack trace for specific functions? From the above sample output, it's not clear which class is calling __init__ in /usr/lib/python3.10/codecs.py.
The text was updated successfully, but these errors were encountered:
I have the following Python code
Running the script
And run uflow.py
The only function I see is the one defined in the script. I would expect that calls for
open()
andprint()
to show up.__init__
in/usr/lib/python3.10/codecs.py
.The text was updated successfully, but these errors were encountered: