Re: your favorite debugging tool?

2009-09-03 Thread Marius Gedminas
On Aug 25, 2:55 pm, Esmail ebo...@hotmail.com wrote: Re pdb, if you have a 'pointer' (ie reference) to an object, is there an easy way to dump out its contents, ie all of its members short of writing a method that does that and then calling it? Usually pp vars(your_object) does what you

Re: your favorite debugging tool?

2009-08-30 Thread Michiel Overtoom
Esmail wrote: What is your favorite tool to help you debug your code? import pdb pdb.set_trace() pdb has commands to inspect code, variables, set breakpoints, watches, walk up and down stack frames, single-step through the program, run the rest of the function, run until return, etc...

Re: your favorite debugging tool?

2009-08-30 Thread Ben Finney
Hendrik van Rooyen hend...@microcorp.co.za writes: And the final arbiter is of course the interactive prompt. Oh yes, of course I forget to mention that! Write your code so it can be imported, and write your functionality so it has narrow interfaces, and you can do whatever inspection is

Re: your favorite debugging tool?

2009-08-26 Thread Paul Rubin
Dennis Lee Bieber wlfr...@ix.netcom.com writes: My normal debug technique is wolf fencing* (eg; print statements) That method was formerly completely automated on the web: http://www.st.cs.uni-saarland.de/askigor/faq.php It was amazing. Further info is here:

Re: your favorite debugging tool?

2009-08-25 Thread Robert Marshall
On 24 Aug 2009, Paul Rubin wrote: Esmail ebo...@hotmail.com writes: What is your favorite tool to help you debug your code? I've been getting along with 'print' statements but that is getting old and somewhat cumbersome. Beyond print statements, I use pdb a lot. Winpdb (www.winpdb.org) is

Re: your favorite debugging tool?

2009-08-25 Thread Michele Simionato
On Aug 22, 4:25 pm, Esmail ebo...@hotmail.com wrote: Hi all, What is your favorite tool to help you debug your code? The times when I would just use 'print' are long past. Nowadays I spend lots of my time with code written by others than myself. I use pdb all the time, and now also ipdb (ipdb

Re: your favorite debugging tool?

2009-08-25 Thread Esmail
Paul Rubin wrote: Esmail ebo...@hotmail.com writes: What is your favorite tool to help you debug your code? I've been getting along with 'print' statements but that is getting old and somewhat cumbersome. Beyond print statements, I use pdb a lot. Winpdb (www.winpdb.org) is even better, but

Re: your favorite debugging tool?

2009-08-25 Thread Esmail
Michele Simionato wrote: On Aug 22, 4:25 pm, Esmail ebo...@hotmail.com wrote: Hi all, What is your favorite tool to help you debug your code? The times when I would just use 'print' are long past. Nowadays I spend lots of my time with code written by others than myself. I use pdb all the

Re: your favorite debugging tool?

2009-08-25 Thread Esmail
Robert Marshall wrote: On 24 Aug 2009, Paul Rubin wrote: Esmail ebo...@hotmail.com writes: What is your favorite tool to help you debug your code? I've been getting along with 'print' statements but that is getting old and somewhat cumbersome. Beyond print statements, I use pdb a lot.

Re: your favorite debugging tool?

2009-08-25 Thread Ben Finney
Esmail ebo...@hotmail.com writes: While I do believe in a minimalist approach (part of the reason I find Python so appealing), using print statements sometimes only goes so far (for me). Right, which is where the Python interactive interpreter (which I failed to mention in my initial

Re: your favorite debugging tool?

2009-08-25 Thread Esmail
Hi Ben, Ben Finney wrote: Whenever a simple output statement is too cumbersome for debugging, I take it as a sign that the program is too cumbersome to follow. I'll have to think about this .. though my gut says this is true :-) re your other point about the interactive shell, I agree it's

Re: your favorite debugging tool?

2009-08-25 Thread Jean-Michel Pichavant
Esmail wrote: Hi Ben, Ben Finney wrote: Whenever a simple output statement is too cumbersome for debugging, I take it as a sign that the program is too cumbersome to follow. I'll have to think about this .. though my gut says this is true :-) That is not always true. When it comes to

Re: your favorite debugging tool?

2009-08-25 Thread Ben Finney
Esmail ebo...@hotmail.com writes: Hi Ben, Ben Finney wrote: Whenever a simple output statement is too cumbersome for debugging, I take it as a sign that the program is too cumbersome to follow. I'll have to think about this .. though my gut says this is true :-) Note that it's only a

Re: your favorite debugging tool?

2009-08-25 Thread Falcolas
On Aug 23, 1:21 am, Hendrik van Rooyen hend...@microcorp.co.za wrote: On Saturday 22 August 2009 16:49:22 Aahz wrote: In article mailman.227.1250951162.2854.python-l...@python.org, Esmail  ebo...@hotmail.com wrote: What is your favorite tool to help you debug your code? I've been

Re: your favorite debugging tool?

2009-08-25 Thread Robert Kern
On 2009-08-25 09:49 AM, Ben Finney wrote: Esmailebo...@hotmail.com writes: Hi Ben, Ben Finney wrote: Whenever a simple output statement is too cumbersome for debugging, I take it as a sign that the program is too cumbersome to follow. I'll have to think about this .. though my gut says

Re: your favorite debugging tool?

2009-08-25 Thread Robert Kern
On 2009-08-25 06:57 AM, Esmail wrote: Michele Simionato wrote: On Aug 22, 4:25 pm, Esmail ebo...@hotmail.com wrote: Hi all, What is your favorite tool to help you debug your code? The times when I would just use 'print' are long past. Nowadays I spend lots of my time with code written by

Re: your favorite debugging tool?

2009-08-25 Thread Esmail
Ben Finney wrote: Esmail ebo...@hotmail.com writes: Hi Ben, Ben Finney wrote: Whenever a simple output statement is too cumbersome for debugging, I take it as a sign that the program is too cumbersome to follow. I'll have to think about this .. though my gut says this is true :-) Note

Re: your favorite debugging tool?

2009-08-24 Thread Jean-Michel Pichavant
Esmail wrote: Hi all, What is your favorite tool to help you debug your code? I've been getting along with 'print' statements but that is getting old and somewhat cumbersome. I'm primarily interested in utilities for Linux (but if you have recommendations for Windows, I'll take them too :) I

Re: your favorite debugging tool?

2009-08-24 Thread Esmail
Hello, thank you all for your suggestions/comments. While I do believe in a minimalist approach (part of the reason I find Python so appealing), using print statements sometimes only goes so far (for me). I probably should look into using iPython in the context of debugging (I already use this

Re: your favorite debugging tool?

2009-08-24 Thread Paul Rubin
Esmail ebo...@hotmail.com writes: What is your favorite tool to help you debug your code? I've been getting along with 'print' statements but that is getting old and somewhat cumbersome. Beyond print statements, I use pdb a lot. Winpdb (www.winpdb.org) is even better, but is kind of

Re: your favorite debugging tool?

2009-08-23 Thread Hendrik van Rooyen
On Saturday 22 August 2009 16:49:22 Aahz wrote: In article mailman.227.1250951162.2854.python-l...@python.org, Esmail ebo...@hotmail.com wrote: What is your favorite tool to help you debug your code? I've been getting along with 'print' statements but that is getting old and somewhat

Re: your favorite debugging tool?

2009-08-23 Thread Robert Kern
On 2009-08-22 07:25 AM, Esmail wrote: Hi all, What is your favorite tool to help you debug your code? I've been getting along with 'print' statements but that is getting old and somewhat cumbersome. I'm primarily interested in utilities for Linux (but if you have recommendations for Windows,

Re: your favorite debugging tool?

2009-08-23 Thread Francesco Bochicchio
On Aug 22, 4:25 pm, Esmail ebo...@hotmail.com wrote: Hi all, What is your favorite tool to help you debug your code? I've been getting along with 'print' statements but that is getting old and somewhat cumbersome. I'm primarily interested in utilities for Linux (but if you have

Re: your favorite debugging tool?

2009-08-23 Thread David
Il Sat, 22 Aug 2009 10:25:37 -0400, Esmail ha scritto: I use emacs as my primary development environment, FWIW. Someone mentioned winpdb .. anyone have experience/comments on this? Others? I use Winpdb on Windows and I feel quite comfortable. The interface is not so clever as more advanced

your favorite debugging tool?

2009-08-22 Thread Esmail
Hi all, What is your favorite tool to help you debug your code? I've been getting along with 'print' statements but that is getting old and somewhat cumbersome. I'm primarily interested in utilities for Linux (but if you have recommendations for Windows, I'll take them too :) I use emacs as my

Re: your favorite debugging tool?

2009-08-22 Thread Aahz
In article mailman.227.1250951162.2854.python-l...@python.org, Esmail ebo...@hotmail.com wrote: What is your favorite tool to help you debug your code? I've been getting along with 'print' statements but that is getting old and somewhat cumbersome. Despite the fact that I've been using Python

Re: your favorite debugging tool?

2009-08-22 Thread Ben Finney
Esmail ebo...@hotmail.com writes: What is your favorite tool to help you debug your code? A “print” statement (or equivalent, like logging output). I've been getting along with 'print' statements but that is getting old and somewhat cumbersome. Whenever a simple output statement is too