122 @signal clientDebuggerIds(debuggerIds) emitted to give the list of IDs of |
122 @signal clientDebuggerIds(debuggerIds) emitted to give the list of IDs of |
123 attached debugger backends |
123 attached debugger backends |
124 """ |
124 """ |
125 clientClearBreak = pyqtSignal(str, int, str) |
125 clientClearBreak = pyqtSignal(str, int, str) |
126 clientClearWatch = pyqtSignal(str, str) |
126 clientClearWatch = pyqtSignal(str, str) |
127 # TODO: check this signal for debuggerId |
|
128 clientGone = pyqtSignal(bool) |
127 clientGone = pyqtSignal(bool) |
129 clientProcessStdout = pyqtSignal(str) |
128 clientProcessStdout = pyqtSignal(str) |
130 clientProcessStderr = pyqtSignal(str) |
129 clientProcessStderr = pyqtSignal(str) |
131 clientRawInputSent = pyqtSignal(str) |
130 clientRawInputSent = pyqtSignal(str) |
132 clientOutput = pyqtSignal(str) |
131 clientOutput = pyqtSignal(str) |
146 clientWatchConditionError = pyqtSignal(str, str) |
145 clientWatchConditionError = pyqtSignal(str, str) |
147 clientRawInput = pyqtSignal(str, bool, str) |
146 clientRawInput = pyqtSignal(str, bool, str) |
148 clientBanner = pyqtSignal(str, str, str, str) |
147 clientBanner = pyqtSignal(str, str, str, str) |
149 clientCapabilities = pyqtSignal(int, str, str) |
148 clientCapabilities = pyqtSignal(int, str, str) |
150 clientCompletionList = pyqtSignal(list, str) |
149 clientCompletionList = pyqtSignal(list, str) |
151 # TODO: check this signal for debuggerId |
|
152 clientInterpreterChanged = pyqtSignal(str) |
150 clientInterpreterChanged = pyqtSignal(str) |
153 clientDebuggerIds = pyqtSignal(list) |
151 clientDebuggerIds = pyqtSignal(list) |
154 utDiscovered = pyqtSignal(list, str, str) |
152 utDiscovered = pyqtSignal(list, str, str) |
155 utPrepared = pyqtSignal(int, str, str) |
153 utPrepared = pyqtSignal(int, str, str) |
156 utStartTest = pyqtSignal(str, str) |
154 utStartTest = pyqtSignal(str, str) |
1790 |
1788 |
1791 def signalLastClientExited(self): |
1789 def signalLastClientExited(self): |
1792 """ |
1790 """ |
1793 Public method to process the last client exit event. |
1791 Public method to process the last client exit event. |
1794 """ |
1792 """ |
1795 # TODO: Why is this not called anymore? |
|
1796 if self.passive: |
1793 if self.passive: |
1797 self.__passiveShutDown() |
1794 self.__passiveShutDown() |
1798 self.lastClientExited.emit() |
1795 self.lastClientExited.emit() |
1799 if Preferences.getDebugger("AutomaticReset") or (self.running and |
1796 if Preferences.getDebugger("AutomaticReset") or (self.running and |
1800 not self.debugging): |
1797 not self.debugging): |
2073 """ |
2070 """ |
2074 self.appendStdout.emit(self.tr("Passive debug connection received\n")) |
2071 self.appendStdout.emit(self.tr("Passive debug connection received\n")) |
2075 self.passiveClientExited = False |
2072 self.passiveClientExited = False |
2076 self.debugging = True |
2073 self.debugging = True |
2077 self.running = True |
2074 self.running = True |
2078 self.__restoreBreakpoints() |
2075 self.__restoreBreakpoints(debuggerId) |
2079 self.__restoreWatchpoints() |
2076 self.__restoreWatchpoints(debuggerId) |
2080 self.passiveDebugStarted.emit(fn, exc) |
2077 self.passiveDebugStarted.emit(fn, exc) |
2081 |
2078 |
2082 def __passiveShutDown(self): |
2079 def __passiveShutDown(self): |
2083 """ |
2080 """ |
2084 Private method to shut down a passive debug connection. |
2081 Private method to shut down a passive debug connection. |