Created
November 10, 2020 00:58
-
-
Save warabanshi/5cb4ee4be12ed514ac5077435e35f464 to your computer and use it in GitHub Desktop.
inspect stuck frame
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def get_stuckframe1(): | |
get_stuckframe2() | |
def get_stuckframe2(): | |
curframe = inspect.currentframe() | |
calframe = inspect.getouterframes(curframe, 2) | |
print('inspect = %s' % "\n".join([str(t) for t in calframe])) | |
if __name__ == '__main__': | |
get_stuchframe1() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment