Question: How does one single-step a python program (note: this is
not how do you debug a python statement or group of
statements but how is an entire program single-stepped)
I read the pdb.doc file and have tried several things but there doesn't seem
to be as easy a method as perl's '-d' comand-line parameter to enter
debugging mode. The only way I have found is to comment-out mainline code
and:
> python
Python 1.0.1 (26 January 1994)
Copyright 1991-1994 Stichting Mathematisch Centrum, Amsterdam
>>> import pdb
>>> pdb.run('import myprogram')
> <string>(0)
(Pdb)
.
.
.
This lets me re-enter the mainline through the keyboard but I _do_ miss
being able to emulate cdb inside of a running perl program through '-d'.
I _must_ be missing something!
Bill
-- *---------------------------------+--------------------+---------------------* | E-mail : Voice : Fax : Bomb | US Postal Service | Parcel Services | *---------------------------------+--------------------+---------------------* | Email: baker@hpspk7c.spk.hp.com | Hewlett Packard Co | Hewlett Packard Co | | Commercial: 1-509-921-3515 | P.O. Box 2500 | 24001 E Mission Ave | | TelNet: 1-921-3515 | Spokane, WA | Liberty Lake, WA | | Fax: 1-509-921-3725 | 99220-2500 | 99019-9599 | | Bomb: 47 33' 30" N 117 33' 40" W| | | *---------------------------------+--------------------+---------------------*