Project

General

Profile

Actions

Python notes » History » Revision 4

« Previous | Revision 4/5 (diff) | Next »
Amber Herold, 09/20/2011 03:12 PM


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 about 13 years ago · 4 revisions