how to debug a python program normally run in windows console
logistix
logistix at zworg.com
Mon Mar 3 13:02:08 EST 2003
"Phil Lacy" <ycal at grapevine.net> wrote in message news:<3e60e5a4_1 at newsfeed>...
> I have a program that has a bug but it is run from a windows console.
>
> If I start program from idle it doesn't read my environment variables
> that I have to preset in the console before running the python file.
>
> if I type python I have no idea where to go from the command-line python
> typing help just gives me some prompt unknown to me.
>
> Any idea where to get help on debugging from a windows console
If you have win32all installed, add this somewhere in your script:
import pywin.debugger
pywin.debugger.set_trace()
This will bring up an entire debugging environment for you.
More information about the Python-list
mailing list