Debugger/DebugServer.py

changeset 3649
2456f04f60a8
parent 3484
645c12de6b0c
child 3656
441956d8fce5
child 3728
3fd874bf34e4
--- a/Debugger/DebugServer.py	Sun Jun 22 12:18:08 2014 +0200
+++ b/Debugger/DebugServer.py	Mon Jun 23 22:01:39 2014 +0200
@@ -112,6 +112,8 @@
     @signal callTraceInfo emitted after the client reported the call trace
         data (isCall, fromFile, fromLine, fromFunction, toFile, toLine,
         toFunction)
+    @signal appendStdout(msg) emitted when a passive debug connection is
+        established or lost
     """
     clientClearBreak = pyqtSignal(str, int)
     clientClearWatch = pyqtSignal(str)
@@ -148,6 +150,7 @@
     utFinished = pyqtSignal()
     passiveDebugStarted = pyqtSignal(str, bool)
     callTraceInfo = pyqtSignal(bool, str, str, str, str, str, str)
+    appendStdout = pyqtSignal(str)
     
     def __init__(self):
         """
@@ -1451,7 +1454,7 @@
         @param fn filename of the debugged script (string)
         @param exc flag to enable exception reporting of the IDE (boolean)
         """
-        print(self.tr("Passive debug connection received"))
+        self.appendStdout.emit(self.tr("Passive debug connection received\n"))
         self.passiveClientExited = False
         self.debugging = True
         self.running = True
@@ -1465,7 +1468,7 @@
         """
         self.passiveClientExited = True
         self.shutdownServer()
-        print(self.tr("Passive debug connection closed"))
+        self.appendStdout.emit(self.tr("Passive debug connection closed\n"))
         
     def __restoreBreakpoints(self):
         """

eric ide

mercurial