Exceptions
Once an exception has been thrown by a script, Python keeps a tuple with information about it. The tuple elements are (type, value, traceback). You can read more about it in the Python documentation for the exc_info() function.
The Exception Tab
You can view and examine the exception elements: type, value and traceback, in the exception tab located in the namespace panel.
Analyze Mode
Once an exception has been raised you can use the analyze mode to examine it. In analyze mode the stack and the namespace will correspond to the raised exception. You can toggle analyze mode on and off by clicking on the analyze mode icon in the toolbar or using the analyze console command.
Unhandled Exceptions
Winpdb will automatically break on unhandled exceptions, to give you an opportunity to examine them. You can recognize the debugger has broken for an unhandled exception by the ‘E’ letter on the left margin of the current source line.
Console Commands:
analyze – Toggle analyze last exception mode.
Winpdb - A Platform Independent Python Debugger