Now when you hit the exception, pdb will take over the console window you started the test app. Type help if you are unfamiliar with pdb. All of your variables are available for review!
Sweet! I can't believe I didn't know about this technique before.