231 self._server.sendJsonCommand(commandDict, sock) |
231 self._server.sendJsonCommand(commandDict, sock) |
232 self.__shutdownSocket(debuggerId, sock) |
232 self.__shutdownSocket(debuggerId, sock) |
233 |
233 |
234 # reinitialize |
234 # reinitialize |
235 self.__mainClientId = None |
235 self.__mainClientId = None |
|
236 if self.__client: |
|
237 self.__client.kill() |
236 self.__client = None |
238 self.__client = None |
237 |
239 |
238 def __shutdownSocket(self, debuggerId, sock): |
240 def __shutdownSocket(self, debuggerId, sock): |
239 """ |
241 """ |
240 Private method to shut down a socket. |
242 Private method to shut down a socket. |
284 Private method to start a debug client process. |
286 Private method to start a debug client process. |
285 |
287 |
286 @param params dictionary containing the request data |
288 @param params dictionary containing the request data |
287 @type dict |
289 @type dict |
288 """ |
290 """ |
|
291 self.shutdownClients() # stop all running clients first (just in case) |
|
292 |
289 self.__inStartClient = True |
293 self.__inStartClient = True |
290 |
294 |
291 # start a debug client |
295 # start a debug client |
292 debugClient = os.path.abspath( |
296 debugClient = os.path.abspath( |
293 os.path.join( |
297 os.path.join( |