Re: How to debug python code?
- From: Thomas Guettler <niemand.leermann@xxxxxxxxxxxxxxxxxx>
- Date: Fri, 31 Mar 2006 15:50:47 +0200
Am Thu, 30 Mar 2006 21:18:50 -0800 schrieb sushant.sirsikar:
hi,
I am new to Python programming.I am not getting exactly pdb.Can
anyone tell me effective way to debug python code?
Hi,
I try to debug the code while I type: Use "assert".
Then if you get an AssertionError you can insert print statements or
raise("var=%s var2=%s" % (var, var2))
to narrow down the problem. I never used pdb.
HTH,
Thomas
--
Thomas Güttler, http://www.thomas-guettler.de/
E-Mail: guettli (*) thomas-guettler + de
Spam Catcher: niemand.leermann@xxxxxxxxxxxxxxxxxx
.
- References:
- How to debug python code?
- From: sushant . sirsikar
- How to debug python code?
- Prev by Date: Re: How to search HUGE XML with DOM?
- Next by Date: Re: Very stupid question.
- Previous by thread: Re: How to debug python code?
- Next by thread: Re: How to debug python code?
- Index(es):
Relevant Pages
|