I am debugging python in MS Visual Studio Code and stepping through the code with F11.
When I get to a timer sleep() method, during the “sleep period” the Call Stack goes blank and I have no way of knowing on what line of code the debugger is waiting.
def someMethod():
time.sleep(30)
print("Finished Timer, still in method")
def main():
someMethod()
print("Finished Timer, back in main()")
# Python script starts here
if __name__ == '__main__':
main()
If I had a long sleep timer and walked away for my desk or maybe someone else arrived how would they know on what line of code the debugger is located while it is waiting for the sleep() to finish?