[Chicago] How to see the whole exception message in pdb
Brian Ray
brianhray at gmail.com
Fri Mar 7 16:52:36 CET 2014
My first suggestion is debug with ipython. I think you can insert
breakpoints like: import ipdb; ipdb,set_trace(); after you pip install
ipdb. That will make the whole world pretty and colorful.
Second, I have there are so many ways to print a stack in Python @@ I once
complained about this along with handing of dates/times in Python. I
stopped complaining once I realized there are reasons things are
complicated--complicated, is not the right word. The reality stack traces,
like date/times, are pretty complex. So my second tip is to explore some
tools. For example try: cgitb.text(sys.exc_info())
There is also a method cgitb.html().
hth, BR
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/chicago/attachments/20140307/7c474b90/attachment.html>
More information about the Chicago
mailing list