Project

General

Profile

Actions

Python notes

Debugging

  • print out the stack trace after an exception is caught:
                import traceback
                one, two, tb = sys.exc_info()
                traceback.print_tb(tb)
    

Updated by Amber Herold over 11 years ago · 5 revisions