src/eric7/RemoteServer/EricServerDebuggerRequestHandler.py

branch
eric7
changeset 10957
fbd61fd3fdc1
parent 10956
1c22b555df34
child 10961
7bbf95f41266
equal deleted inserted replaced
10956:1c22b555df34 10957:fbd61fd3fdc1
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(
357 else: 361 else:
358 try: # noqa: Y105 362 try: # noqa: Y105
359 sock = self.__connections[debuggerId] 363 sock = self.__connections[debuggerId]
360 self._server.sendJsonCommand(jsonStr, sock) 364 self._server.sendJsonCommand(jsonStr, sock)
361 except KeyError: 365 except KeyError:
366 # - print(f"Command for unknown debugger ID '{debuggerId}' received.")
362 pass 367 pass
363 # - print(f"Command for unknown debugger ID '{debuggerId}' received.")

eric ide

mercurial