47 "DebuggerRequestError": self.__handleDbgRequestError, |
47 "DebuggerRequestError": self.__handleDbgRequestError, |
48 "DebugClientResponse": self.__handleDbgClientResponse, |
48 "DebugClientResponse": self.__handleDbgClientResponse, |
49 "DebugClientDisconnected": self.__handleDbgClientDisconnected, |
49 "DebugClientDisconnected": self.__handleDbgClientDisconnected, |
50 "LastDebugClientExited": self.__handleLastDbgClientExited, |
50 "LastDebugClientExited": self.__handleLastDbgClientExited, |
51 "MainClientExited": self.__handleMainClientExited, |
51 "MainClientExited": self.__handleMainClientExited, |
|
52 "StartClientError": self.__handleStartClientError, |
52 } |
53 } |
53 |
54 |
54 # connect some signals |
55 # connect some signals |
55 self.__serverInterface.remoteDebuggerReply.connect(self.__handleDebuggerReply) |
56 self.__serverInterface.remoteDebuggerReply.connect(self.__handleDebuggerReply) |
56 |
57 |
152 @type dict |
153 @type dict |
153 """ |
154 """ |
154 self.__clientStarted = False |
155 self.__clientStarted = False |
155 ericApp().getObject("DebugServer").signalMainClientExit() |
156 ericApp().getObject("DebugServer").signalMainClientExit() |
156 |
157 |
|
158 def __handleStartClientError(self, params): |
|
159 """ |
|
160 Private method to handle an error starting the remote debug client. |
|
161 |
|
162 @param params dictionary containing the reply data |
|
163 @type dict |
|
164 """ |
|
165 EricMessageBox.warning( |
|
166 None, |
|
167 self.tr("Start Debug Client"), |
|
168 self.tr( |
|
169 "<p>The debug client of the 'eric-ide' server could not be started.</p>" |
|
170 "<p>Error: {0}</p>" |
|
171 ).format(params["Error"]), |
|
172 ) |
|
173 |
157 ####################################################################### |
174 ####################################################################### |
158 ## Methods for sending debug server commands to the eric-ide server. |
175 ## Methods for sending debug server commands to the eric-ide server. |
159 ####################################################################### |
176 ####################################################################### |
160 |
177 |
161 def startClient(self, interpreter, originalPathString, args, workingDir=""): |
178 def startClient(self, interpreter, originalPathString, args, workingDir=""): |