New submission from Paul: In Python 2.6, pdb doesn't show exception strings properly:
#somecode.py import pdb pdb.set_trace() raise Exception('This is a message that contains a lot of characters and is very long indeed.') #terminal > somecode.py -> raise Exception('This is a message that contains a lot of characters and is very long indeed.') (Pdb) n Exception: Exceptio...ndeed.',) The pdb code assumes that sys.exc_info()[1] is a string. In fact it's an Exception instance. The solution I found was to use str() #pdb.py line 186 print >>self.stdout, exc_type_name + ':', _saferepr(str(exc_value)) This may have been fixed already but I couldn't find any reference to it. ---------- components: None messages: 167550 nosy: powlo priority: normal severity: normal status: open title: pdb displays runt Exception strings type: behavior versions: Python 2.6 _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue15565> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com