eric6/Debugger/DebuggerInterfacePython.py

branch
multi_processing
changeset 7882
617cc27f11af
parent 7875
12c621ed4377
child 7897
9acc015ea443
equal deleted inserted replaced
7881:6c09c023cda5 7882:617cc27f11af
552 if debuggerId == self.__master: 552 if debuggerId == self.__master:
553 self.__flush() 553 self.__flush()
554 self.debugServer.masterClientConnected() 554 self.debugServer.masterClientConnected()
555 555
556 self.debugServer.initializeClient(debuggerId) 556 self.debugServer.initializeClient(debuggerId)
557 # TODO: show info about new client
558 557
559 # perform auto-continue except for master 558 # perform auto-continue except for master
560 if ( 559 if (
561 debuggerId != self.__master and 560 debuggerId != self.__master and
562 self.__autoContinue and 561 self.__autoContinue and
584 if sock in self.__pendingConnections: 583 if sock in self.__pendingConnections:
585 self.__pendingConnections.remove(sock) 584 self.__pendingConnections.remove(sock)
586 585
587 if not self.__connections: 586 if not self.__connections:
588 # no active connections anymore 587 # no active connections anymore
589 self.debugServer.signalLastClientExited() 588 try:
589 self.debugServer.signalLastClientExited()
590 except RuntimeError:
591 # debug server object might have been deleted already
592 # ignore this
593 pass
590 self.__autoContinued.clear() 594 self.__autoContinued.clear()
591 595
592 def getDebuggerIds(self): 596 def getDebuggerIds(self):
593 """ 597 """
594 Public method to return the IDs of the connected debugger backends. 598 Public method to return the IDs of the connected debugger backends.
664 668
665 def remoteEnvironment(self, env): 669 def remoteEnvironment(self, env):
666 """ 670 """
667 Public method to set the environment for a program to debug, run, ... 671 Public method to set the environment for a program to debug, run, ...
668 672
669 @param env environment settings (dictionary) 673 @param env environment settings
674 @type dict
670 """ 675 """
671 if self.__master: 676 if self.__master:
672 self.__sendJsonCommand("RequestEnvironment", {"environment": env}, 677 self.__sendJsonCommand("RequestEnvironment", {"environment": env},
673 self.__master) 678 self.__master)
674 679

eric ide

mercurial