Debugger/DebugServer.py

changeset 3649
2456f04f60a8
parent 3484
645c12de6b0c
child 3656
441956d8fce5
child 3728
3fd874bf34e4
equal deleted inserted replaced
3648:e6c4ebc3c2fe 3649:2456f04f60a8
110 @signal utTestSucceededUnexpected(testname, id) emitted after the client 110 @signal utTestSucceededUnexpected(testname, id) emitted after the client
111 reported an unexpected test success 111 reported an unexpected test success
112 @signal callTraceInfo emitted after the client reported the call trace 112 @signal callTraceInfo emitted after the client reported the call trace
113 data (isCall, fromFile, fromLine, fromFunction, toFile, toLine, 113 data (isCall, fromFile, fromLine, fromFunction, toFile, toLine,
114 toFunction) 114 toFunction)
115 @signal appendStdout(msg) emitted when a passive debug connection is
116 established or lost
115 """ 117 """
116 clientClearBreak = pyqtSignal(str, int) 118 clientClearBreak = pyqtSignal(str, int)
117 clientClearWatch = pyqtSignal(str) 119 clientClearWatch = pyqtSignal(str)
118 clientGone = pyqtSignal(bool) 120 clientGone = pyqtSignal(bool)
119 clientProcessStdout = pyqtSignal(str) 121 clientProcessStdout = pyqtSignal(str)
146 utTestFailedExpected = pyqtSignal(str, str, str) 148 utTestFailedExpected = pyqtSignal(str, str, str)
147 utTestSucceededUnexpected = pyqtSignal(str, str) 149 utTestSucceededUnexpected = pyqtSignal(str, str)
148 utFinished = pyqtSignal() 150 utFinished = pyqtSignal()
149 passiveDebugStarted = pyqtSignal(str, bool) 151 passiveDebugStarted = pyqtSignal(str, bool)
150 callTraceInfo = pyqtSignal(bool, str, str, str, str, str, str) 152 callTraceInfo = pyqtSignal(bool, str, str, str, str, str, str)
153 appendStdout = pyqtSignal(str)
151 154
152 def __init__(self): 155 def __init__(self):
153 """ 156 """
154 Constructor 157 Constructor
155 """ 158 """
1449 Public method to handle a passive debug connection. 1452 Public method to handle a passive debug connection.
1450 1453
1451 @param fn filename of the debugged script (string) 1454 @param fn filename of the debugged script (string)
1452 @param exc flag to enable exception reporting of the IDE (boolean) 1455 @param exc flag to enable exception reporting of the IDE (boolean)
1453 """ 1456 """
1454 print(self.tr("Passive debug connection received")) 1457 self.appendStdout.emit(self.tr("Passive debug connection received\n"))
1455 self.passiveClientExited = False 1458 self.passiveClientExited = False
1456 self.debugging = True 1459 self.debugging = True
1457 self.running = True 1460 self.running = True
1458 self.__restoreBreakpoints() 1461 self.__restoreBreakpoints()
1459 self.__restoreWatchpoints() 1462 self.__restoreWatchpoints()
1463 """ 1466 """
1464 Private method to shut down a passive debug connection. 1467 Private method to shut down a passive debug connection.
1465 """ 1468 """
1466 self.passiveClientExited = True 1469 self.passiveClientExited = True
1467 self.shutdownServer() 1470 self.shutdownServer()
1468 print(self.tr("Passive debug connection closed")) 1471 self.appendStdout.emit(self.tr("Passive debug connection closed\n"))
1469 1472
1470 def __restoreBreakpoints(self): 1473 def __restoreBreakpoints(self):
1471 """ 1474 """
1472 Private method to restore the breakpoints after a restart. 1475 Private method to restore the breakpoints after a restart.
1473 """ 1476 """

eric ide

mercurial