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 12 years ago · 5 revisions