Debugger/DebugServer.py

changeset 464
a2b1d1770ef0
parent 460
6a3899e91d76
child 465
c20e25deb33a
equal deleted inserted replaced
463:8d0309c4b7f6 464:a2b1d1770ef0
285 self.__setClientType(clType) 285 self.__setClientType(clType)
286 286
287 # only start the client, if we are not in passive mode 287 # only start the client, if we are not in passive mode
288 if not self.passive: 288 if not self.passive:
289 if self.clientProcess: 289 if self.clientProcess:
290 self.disconnect(self.clientProcess, SIGNAL("readyReadStandardError()"), 290 self.clientProcess.readyReadStandardOutput.disconnect(self.__clientProcessError)
291 self.__clientProcessError) 291 self.clientProcess.readyReadStandardOutput.disconnect(self.__clientProcessOutput)
292 self.disconnect(self.clientProcess, SIGNAL("readyReadStandardOutput()"),
293 self.__clientProcessOutput)
294 self.clientProcess.close() 292 self.clientProcess.close()
295 self.clientProcess.kill() 293 self.clientProcess.kill()
296 self.clientProcess.waitForFinished(10000) 294 self.clientProcess.waitForFinished(10000)
297 self.clientProcess = None 295 self.clientProcess = None
298 296
310 else: 308 else:
311 self.clientProcess, isNetworked = \ 309 self.clientProcess, isNetworked = \
312 self.debuggerInterface.startRemote(self.serverPort(), runInConsole) 310 self.debuggerInterface.startRemote(self.serverPort(), runInConsole)
313 311
314 if self.clientProcess: 312 if self.clientProcess:
315 self.connect(self.clientProcess, SIGNAL("readyReadStandardError()"), 313 self.clientProcess.readyReadStandardOutput.connect(self.__clientProcessError)
316 self.__clientProcessError) 314 self.clientProcess.readyReadStandardOutput.connect(self.__clientProcessOutput)
317 self.connect(self.clientProcess, SIGNAL("readyReadStandardOutput()"),
318 self.__clientProcessOutput)
319 315
320 if not isNetworked: 316 if not isNetworked:
321 # the client is connected through stdin and stdout 317 # the client is connected through stdin and stdout
322 # Perform actions necessary, if client type has changed 318 # Perform actions necessary, if client type has changed
323 if self.lastClientType != self.clientType: 319 if self.lastClientType != self.clientType:

eric ide

mercurial