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.
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.
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.
analyze â€“ Toggle analyze last exception mode.