Traceback disapears before I can read it!

Edward K. Ream edreamleo at charter.net
Sun May 11 17:13:14 EDT 2003


> Of course, I still need to see a traceback to debug my programs.  If I
> invoke my wxPython app using PYTHON.EXE, I can get a stdout window,
> which prints the traceback and any print statements that I might
> include in my program.  So far, so good.  However, if an error
> actually occurs the stdout window closes immediately after printing
> the traceback.

Invoke Python with the -i argument so that Python stays in interactive mode
after your script exits.  For example, on XP, in the Settings:Folder option
dialog, set the open option for .py files to:

C:\PYTHON22\python.exe -i "%1" %*

Edward
--------------------------------------------------------------------
Edward K. Ream   email:  edreamleo at charter.net
Leo: Literate Editor with Outlines
Leo: http://webpages.charter.net/edreamleo/front.html
--------------------------------------------------------------------






More information about the Python-list mailing list