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
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...
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
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:
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
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
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
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
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.
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
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
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
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
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
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
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
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
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
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
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
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
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,
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
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
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
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
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
27 matches
Mail list logo