Re: How to debug python code?



sushant.sirsikar@xxxxxxxxx wrote:
hi,
I am new to Python programming.I am not getting exactly pdb.Can
anyone tell me effective way to debug python code?
Please give me any example.
Looking for responce.
Thank You.
Sushant

If you are having issues you also might want to try:
http://pychecker.sourceforge.net/
and see if it finds your problem. You might get lucky.

Or just make the bigger install:
http://stani.be/python/spe/blog/
that one already includes pychecker and a python debugger.

Sorry for the noise if you were just looking for instructions for pdb.

.



Relevant Pages

  • Re: debugging
    ... > Can someone help me out a little with Python? ... > end up falling back on inserting print statements in my code to figure ... I never use a debugger; I find stepping through code, ...
    (comp.lang.python)
  • Re: debugging
    ... > Can someone help me out a little with Python? ... > use to debug Python code? ... Komodo is not free, but the personal edition is pretty cheap, and the ... commercial edition is well worth the price for commercial development. ...
    (comp.lang.python)
  • debugging
    ... Can someone help me out a little with Python? ... I don't understand how to use the built in debugger ...
    (comp.lang.python)
  • Re: How to debug python code?
    ... I am new to Python programming.I am not getting exactly pdb.Can ... anyone tell me effective way to debug python code? ... unit tests + print statements + the interactive shell are ...
    (comp.lang.python)
  • Debugging with SciTE
    ... debugging Python scripts. ... Debugging takes place in the SciTE output ... from pdb import pm, set_trace ... SciTE output window, after which you will see a python prompt. ...
    (comp.lang.python)