On Dienstag, 5. April 2011, Janwillem van Dijk wrote: > When I manage to get an error in my python3 script and run it from > within Eric5 the traceback is not what I expect and makes the > debug-viewer useless. A simple example: > #!/usr/bin/env python3 > import sys, traceback > print(sys.version) > try: > print(10/0) > except: > traceback.print_exc() > > This returns in the debug-view: > 3.1.2 (release31-maint, Sep 17 2010, 20:34:23) > [GCC 4.4.5] > Traceback (most recent call last): > File "<string>", line 8, in <module> > ZeroDivisionError: int division or modulo by zero > > There appears a new empty tab in the IDE named <string>. > > Running the script in a terminal gives the expected output: > 3.1.2 (release31-maint, Sep 17 2010, 20:34:23) > [GCC 4.4.5] > Traceback (most recent call last): > File "./sys_version.py", line 8, in <module> > print(10/0) > ZeroDivisionError: int division or modulo by zero > > Where should I look for any mistakes? > Thanks, Janwillem > > _______________________________________________ > Eric mailing list > [email protected] > http://www.riverbankcomputing.com/mailman/listinfo/eric
That script behaves as expected over here. eric pops up a dialog with a report about the exception and the question what to do. If possible send more details of your debugger settings. Detlev -- Detlev Offenbach [email protected] _______________________________________________ Eric mailing list [email protected] http://www.riverbankcomputing.com/mailman/listinfo/eric
