DebugClients/Python/DebugBase.py

changeset 1475
7e5348c83c9d
parent 1112
8a7d1b9d18db
child 1509
c0b5e693b0eb
diff -r 1eaec11a0078 -r 7e5348c83c9d DebugClients/Python/DebugBase.py
--- a/DebugClients/Python/DebugBase.py	Mon Nov 28 20:03:49 2011 +0100
+++ b/DebugClients/Python/DebugBase.py	Sat Dec 03 12:28:34 2011 +0100
@@ -583,6 +583,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