DebugClients/Python/DebugBase.py

branch
5_1_x
changeset 1476
7d7710aeeab9
parent 936
f6bc16bd4198
child 1510
e75ecf2bd9dd
--- a/DebugClients/Python/DebugBase.py	Sun Nov 27 19:38:09 2011 +0100
+++ b/DebugClients/Python/DebugBase.py	Sat Dec 03 12:28:34 2011 +0100
@@ -579,6 +579,11 @@
         """
         if exctype in [SystemExit, bdb.BdbQuit]:
             atexit._run_exitfuncs()
+            if excval is None:
+                excval = 0
+            elif isinstance(excval, (unicode, str)):
+                self._dbgClient.write(excval)
+                excval = 1
             if isinstance(excval, int):
                 self._dbgClient.progTerminated(excval)
             else:

eric ide

mercurial