debug python like set -x

Discussion in 'Python' started by Dave, Aug 15, 2003.

  1. Dave

    Dave Guest

    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?

    thanks in advance
    Dave, Aug 15, 2003
    #1
    1. Advertising

  2. Dave

    Jp Calderone Guest

    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
    Jp Calderone, Aug 15, 2003
    #2
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. RonL
    Replies:
    0
    Views:
    726
  2. ringos75
    Replies:
    0
    Views:
    935
    ringos75
    Apr 14, 2005
  3. Mike C. Fletcher
    Replies:
    3
    Views:
    968
    =?ISO-8859-1?Q?=22Martin_v=2E_L=F6wis=22?=
    Oct 12, 2003
  4. Patrick Kowalzick
    Replies:
    5
    Views:
    456
    Patrick Kowalzick
    Mar 14, 2006
  5. PatrickMinnesota

    New to Python Would like debug advice

    PatrickMinnesota, Dec 17, 2007, in forum: Python
    Replies:
    4
    Views:
    238
Loading...

Share This Page