diff -r 905e7af29101 -r 615d367f0140 src/eric7/Debugger/DebuggerInterfacePython.py --- a/src/eric7/Debugger/DebuggerInterfacePython.py Thu Oct 20 19:19:00 2022 +0200 +++ b/src/eric7/Debugger/DebuggerInterfacePython.py Fri Oct 21 09:28:18 2022 +0200 @@ -639,11 +639,12 @@ if not self.__connections: # no active connections anymore with contextlib.suppress(RuntimeError): - self.debugServer.signalLastClientExited() # debug server object might have been deleted already # ignore this - self.__autoContinued.clear() - self.debugServer.startClient() + self.debugServer.signalLastClientExited() + self.__autoContinued.clear() + if not self.__inShutdown: + self.debugServer.startClient() def getDebuggerIds(self): """