eric6/Debugger/DebugServer.py

branch
multi_processing
changeset 7412
0a995393d2ba
parent 7411
6d8dcb3551b3
child 7416
6f899e82f9a2
equal deleted inserted replaced
7411:6d8dcb3551b3 7412:0a995393d2ba
80 client has decided to clear a temporary watch expression 80 client has decided to clear a temporary watch expression
81 @signal clientWatchConditionError(condition, debuggerId) emitted after the 81 @signal clientWatchConditionError(condition, debuggerId) emitted after the
82 client has signaled a syntax error in a watch expression 82 client has signaled a syntax error in a watch expression
83 @signal clientRawInput(prompt, echo, debuggerId) emitted after a raw input 83 @signal clientRawInput(prompt, echo, debuggerId) emitted after a raw input
84 request was received 84 request was received
85 @signal clientBanner(version, platform, dbgclient, venvname) emitted after 85 @signal clientBanner(version, platform, venvname) emitted after
86 the client banner data was received 86 the client banner data was received
87 @signal clientCapabilities(capabilities, cltype, venvname) emitted after 87 @signal clientCapabilities(capabilities, cltype, venvname) emitted after
88 the clients capabilities were received 88 the clients capabilities were received
89 @signal clientCompletionList(completionList, text, debuggerId) emitted 89 @signal clientCompletionList(completionList, text, debuggerId) emitted
90 after the client the commandline completion list and the reworked 90 after the client the commandline completion list and the reworked
117 @signal callTraceInfo emitted after the client reported the call trace 117 @signal callTraceInfo emitted after the client reported the call trace
118 data (isCall, fromFile, fromLine, fromFunction, toFile, toLine, 118 data (isCall, fromFile, fromLine, fromFunction, toFile, toLine,
119 toFunction, debuggerId) 119 toFunction, debuggerId)
120 @signal appendStdout(msg) emitted when a passive debug connection is 120 @signal appendStdout(msg) emitted when a passive debug connection is
121 established or lost 121 established or lost
122 @signal clientDebuggerIds(debuggerIds) emitted to give the list of IDs of 122 @signal clientDebuggerId(debuggerId) emitted to indicate a newly connected
123 attached debugger backends 123 debugger backend
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 clientGone = pyqtSignal(bool) 127 clientGone = pyqtSignal(bool)
128 clientProcessStdout = pyqtSignal(str) 128 clientProcessStdout = pyqtSignal(str)
142 clientExit = pyqtSignal(int, str, bool, str) 142 clientExit = pyqtSignal(int, str, bool, str)
143 lastClientExited = pyqtSignal() 143 lastClientExited = pyqtSignal()
144 clientBreakConditionError = pyqtSignal(str, int, str) 144 clientBreakConditionError = pyqtSignal(str, int, str)
145 clientWatchConditionError = pyqtSignal(str, str) 145 clientWatchConditionError = pyqtSignal(str, str)
146 clientRawInput = pyqtSignal(str, bool, str) 146 clientRawInput = pyqtSignal(str, bool, str)
147 clientBanner = pyqtSignal(str, str, str, str) 147 clientBanner = pyqtSignal(str, str, str)
148 clientCapabilities = pyqtSignal(int, str, str) 148 clientCapabilities = pyqtSignal(int, str, str)
149 clientCompletionList = pyqtSignal(list, str, str) 149 clientCompletionList = pyqtSignal(list, str, str)
150 clientInterpreterChanged = pyqtSignal(str) 150 clientInterpreterChanged = pyqtSignal(str)
151 clientDebuggerIds = pyqtSignal(list) 151 clientDebuggerId = pyqtSignal(str)
152 utDiscovered = pyqtSignal(list, str, str) 152 utDiscovered = pyqtSignal(list, str, str)
153 utPrepared = pyqtSignal(int, str, str) 153 utPrepared = pyqtSignal(int, str, str)
154 utStartTest = pyqtSignal(str, str) 154 utStartTest = pyqtSignal(str, str)
155 utStopTest = pyqtSignal() 155 utStopTest = pyqtSignal()
156 utTestFailed = pyqtSignal(str, str, str) 156 utTestFailed = pyqtSignal(str, str, str)
1881 @param debuggerId ID of the debugger backend 1881 @param debuggerId ID of the debugger backend
1882 @type str 1882 @type str
1883 """ 1883 """
1884 self.clientRawInput.emit(prompt, echo, debuggerId) 1884 self.clientRawInput.emit(prompt, echo, debuggerId)
1885 1885
1886 def signalClientBanner(self, version, platform, debugClient, venvName): 1886 def signalClientBanner(self, version, platform, venvName):
1887 """ 1887 """
1888 Public method to process the client banner info. 1888 Public method to process the client banner info.
1889 1889
1890 @param version interpreter version info 1890 @param version interpreter version info
1891 @type str 1891 @type str
1892 @param platform hostname of the client 1892 @param platform hostname of the client
1893 @type str 1893 @type str
1894 @param debugClient additional debugger type info
1895 @type str
1896 @param venvName name of the virtual environment 1894 @param venvName name of the virtual environment
1897 @type str 1895 @type str
1898 """ 1896 """
1899 self.clientBanner.emit(version, platform, debugClient, venvName) 1897 self.clientBanner.emit(version, platform, venvName)
1900 1898
1901 def signalClientCapabilities(self, capabilities, clientType, venvName): 1899 def signalClientCapabilities(self, capabilities, clientType, venvName):
1902 """ 1900 """
1903 Public method to process the client capabilities info. 1901 Public method to process the client capabilities info.
1904 1902
2170 @param on flag indicating the new debugging state 2168 @param on flag indicating the new debugging state
2171 @type bool 2169 @type bool
2172 """ 2170 """
2173 self.debugging = on 2171 self.debugging = on
2174 2172
2175 def signalClientDebuggerIds(self, debuggerIds): 2173 def signalClientDebuggerId(self, debuggerId):
2176 """ 2174 """
2177 Public method to signal the receipt of a new debugger ID. 2175 Public method to signal the receipt of a new debugger ID.
2178 2176
2179 This signal indicates, that a new debugger backend has connected. 2177 This signal indicates, that a new debugger backend has connected.
2180 2178
2181 @param debuggerIds list of IDs of the connected debugger backends 2179 @param debuggerId ID of the newly connected debugger backend
2182 @type list of str 2180 @type str
2183 """ 2181 """
2184 self.clientDebuggerIds.emit(debuggerIds) 2182 self.clientDebuggerId.emit(debuggerId)
2185 2183
2186 def getDebuggerIds(self): 2184 def getDebuggerIds(self):
2187 """ 2185 """
2188 Public method to return the IDs of the connected debugger backends. 2186 Public method to return the IDs of the connected debugger backends.
2189 2187

eric ide

mercurial