DEBUGGER question

andres at corrada.com andres at corrada.com
Wed Jun 7 08:13:09 EDT 2000


On Tue, Jun 06, 2000 at 09:52:48PM -0000, al at servana.com wrote:
> 
> When I have a script with a MAIN that is envoked when you 'execute 
> the script' (like: python scriptname.py -a -b -c arg1 arg2)
> I cannot find a way to get it 'in' to PDB.
> 
> If I try pdb.run('scriptname.main()') it does not actually execute 
> the script.
> I tried pdb.runcall also, and also used the __main__ notataion - 
> still no go.
> 
> If you look at the WEBCHECKER scripts which come with python, you can 

Try something like:

python /path/to/pdb.py scriptname.py

------------------------------------------------------
Andres Corrada-Emmanuel   Email: andres at corrada.com
------------------------------------------------------




More information about the Python-list mailing list