Debugger/DebugServer.py

changeset 470
99d8c50ba42f
parent 465
c20e25deb33a
child 481
ad71812ba395
equal deleted inserted replaced
467:0911d8be9b07 470:99d8c50ba42f
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.clientProcess.readyReadStandardOutput.disconnect(self.__clientProcessError) 290 self.clientProcess.readyReadStandardError.disconnect(
291 self.clientProcess.readyReadStandardOutput.disconnect(self.__clientProcessOutput) 291 self.__clientProcessError)
292 self.clientProcess.readyReadStandardOutput.disconnect(
293 self.__clientProcessOutput)
292 self.clientProcess.close() 294 self.clientProcess.close()
293 self.clientProcess.kill() 295 self.clientProcess.kill()
294 self.clientProcess.waitForFinished(10000) 296 self.clientProcess.waitForFinished(10000)
295 self.clientProcess = None 297 self.clientProcess = None
296 298
308 else: 310 else:
309 self.clientProcess, isNetworked = \ 311 self.clientProcess, isNetworked = \
310 self.debuggerInterface.startRemote(self.serverPort(), runInConsole) 312 self.debuggerInterface.startRemote(self.serverPort(), runInConsole)
311 313
312 if self.clientProcess: 314 if self.clientProcess:
313 self.clientProcess.readyReadStandardOutput.connect(self.__clientProcessError) 315 self.clientProcess.readyReadStandardError.connect(
314 self.clientProcess.readyReadStandardOutput.connect(self.__clientProcessOutput) 316 self.__clientProcessError)
317 self.clientProcess.readyReadStandardOutput.connect(
318 self.__clientProcessOutput)
315 319
316 if not isNetworked: 320 if not isNetworked:
317 # the client is connected through stdin and stdout 321 # the client is connected through stdin and stdout
318 # Perform actions necessary, if client type has changed 322 # Perform actions necessary, if client type has changed
319 if self.lastClientType != self.clientType: 323 if self.lastClientType != self.clientType:

eric ide

mercurial