If you execute a statement that results in an exception in pdb you get the exception but the traceback for the exception is hidden.
Is there a way of getting pdb to output the exception?
Unfortunately neither sys.exc_info()
or !sys.exc_info
seems to contain the exception for for the last executed command. One seems to point to the exception that triggered the pdb post mortem. The other is an exception from within pdb. It'd also be nice to always get it to do the right thing.