Re: [Tutor] Python debugger bummer
Thanks Alan. As always, you are very helpful. Victor On Mon, 2006-01-16 at 23:35 +, Alan Gauld wrote: > > I was going through the Python library documentation and I found > > something I never saw before. > > > > $ python -m pdb myscript.py > > I was just about to suggest loading pdb... > > And of course there is also a graphical debugger in IDLE as > well as PythonWin. > > The paper version of my book contains a chapter > (not on the web site) on how to use pdb to debug a script. > pdb has its limitations but if you are used to gdb then its > not too bad. > > (pdb) help > > is your friend. > > Alan G > Author of the learn to program web tutor > http://www.freenetpages.co.uk/hp/alan.gauld > > ___ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor
Re: [Tutor] Python debugger bummer
> I was going through the Python library documentation and I found > something I never saw before. > > $ python -m pdb myscript.py I was just about to suggest loading pdb... And of course there is also a graphical debugger in IDLE as well as PythonWin. The paper version of my book contains a chapter (not on the web site) on how to use pdb to debug a script. pdb has its limitations but if you are used to gdb then its not too bad. (pdb) help is your friend. Alan G Author of the learn to program web tutor http://www.freenetpages.co.uk/hp/alan.gauld ___ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor
Re: [Tutor] Python debugger bummer
Hi again, I was going through the Python library documentation and I found something I never saw before. $ python -m pdb myscript.py This is what I was looking for! Great help. Any further reference could of course help a lot. I never was able to get the hang of it until now. Victor On Mon, 2006-01-16 at 13:12 -0600, Victor Bouffier wrote: > Hi to all, > > I tried to look for a reference to this issue in the ASPN archive, but I > can't seem to find an answer. > > I currently work under Linux and have never been able to properly use > the Python debugger. Coming from a Perl background, I fail to find a > similar simple way to step through my code the way I am able to do it > through the -d flag using Perl on the command line. It is so painless. > > I have used Python on Windows, usually writing my programs using Vim, > and entering the PythonWin environment to debug my programs. It is a > good environment to do that, although I prefer my independent editor for > writing my programs. > > I once paid for ActiveState's Komodo for Linux to use as an IDE, but I find it > bloated and slow, not to mention the need to constantly upgrade if you > want to keep up with versions (have not done it yet). > > Does anyone have any suggestions as to an alternative to PythonWin, or > even better still, a reference to a good tutorial on how to use my > current tools: how to use the python debugger as the way Perl debugger > works? I am certain the Python interpreter (being better that Perl in > that sense) must have a way to use the debugger. > > I work under Linux using vi/gvim and ipython (I have never really tried > IDLE). > > Thanks in advance for any help. > Victor > > > ___ > Tutor maillist - Tutor@python.org > http://mail.python.org/mailman/listinfo/tutor ___ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor
[Tutor] Python debugger bummer
Hi to all, I tried to look for a reference to this issue in the ASPN archive, but I can't seem to find an answer. I currently work under Linux and have never been able to properly use the Python debugger. Coming from a Perl background, I fail to find a similar simple way to step through my code the way I am able to do it through the -d flag using Perl on the command line. It is so painless. I have used Python on Windows, usually writing my programs using Vim, and entering the PythonWin environment to debug my programs. It is a good environment to do that, although I prefer my independent editor for writing my programs. I once paid for ActiveState's Komodo for Linux to use as an IDE, but I find it bloated and slow, not to mention the need to constantly upgrade if you want to keep up with versions (have not done it yet). Does anyone have any suggestions as to an alternative to PythonWin, or even better still, a reference to a good tutorial on how to use my current tools: how to use the python debugger as the way Perl debugger works? I am certain the Python interpreter (being better that Perl in that sense) must have a way to use the debugger. I work under Linux using vi/gvim and ipython (I have never really tried IDLE). Thanks in advance for any help. Victor ___ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor