debug python like set -x

Jp Calderone exarkun at intarweb.us
Fri Aug 15 11:55:21 EDT 2003


On Fri, Aug 15, 2003 at 08:13:01AM -0700, Dave wrote:
> Hi,
> Newbie here.  Is there a way to have output from a python program go
> to the screen the way it does if I use "set -x" in a shell script?
> 

  Python2.3's trace.py (also in Tools/ in 2.2) has some interesting
functionality along these lines.

  Jp

-- 
"Minerals are inexhaustible and will never be depleted. A stream of
investment creates additions to proved reserves, a very large in-ground
inventory, constantly renewed as it is extracted... How much was in the
ground at the start and how much will be left at the end are unknown and
irrelevant."  -- Morry Adelman, World Renowned Economist





More information about the Python-list mailing list