eric6/Debugger/DebuggerInterfacePython.py

changeset 8240
93b8a353c4bf
parent 8230
8b5c6896655b
child 8243
cc717c2ae956
equal deleted inserted replaced
8239:59a9a658618c 8240:93b8a353c4bf
9 9
10 import sys 10 import sys
11 import os 11 import os
12 import logging 12 import logging
13 import shlex 13 import shlex
14 import contextlib
14 15
15 from PyQt5.QtCore import ( 16 from PyQt5.QtCore import (
16 QObject, QProcess, QProcessEnvironment, QTimer 17 QObject, QProcess, QProcessEnvironment, QTimer
17 ) 18 )
18 19
599 if sock in self.__pendingConnections: 600 if sock in self.__pendingConnections:
600 self.__pendingConnections.remove(sock) 601 self.__pendingConnections.remove(sock)
601 602
602 if not self.__connections: 603 if not self.__connections:
603 # no active connections anymore 604 # no active connections anymore
604 try: 605 with contextlib.suppress(RuntimeError):
605 self.debugServer.signalLastClientExited() 606 self.debugServer.signalLastClientExited()
606 except RuntimeError:
607 # debug server object might have been deleted already 607 # debug server object might have been deleted already
608 # ignore this 608 # ignore this
609 pass
610 self.__autoContinued.clear() 609 self.__autoContinued.clear()
611 self.debugServer.startClient() 610 self.debugServer.startClient()
612 611
613 def getDebuggerIds(self): 612 def getDebuggerIds(self):
614 """ 613 """

eric ide

mercurial