--- a/eric6/Debugger/DebugServer.py Sat Feb 27 11:28:22 2021 +0100 +++ b/eric6/Debugger/DebugServer.py Sat Feb 27 12:08:23 2021 +0100 @@ -73,6 +73,8 @@ @signal clientExit(str, int, str, bool, str) emitted after the client has exited giving the program name, the exit status, an exit message, an indication to be quiet and the ID of the exited client + @signal mainClientExit() emitted to indicate that the main client process + has exited @signal lastClientExited() emitted to indicate that the last connected debug client has terminated @signal clientClearBreak(filename, lineno, debuggerId) emitted after the @@ -145,6 +147,7 @@ clientSignal = pyqtSignal(str, str, int, str, str, str) clientDisconnected = pyqtSignal(str) clientExit = pyqtSignal(str, int, str, bool, str) + mainClientExit = pyqtSignal() lastClientExited = pyqtSignal() clientBreakConditionError = pyqtSignal(str, int, str) clientWatchConditionError = pyqtSignal(str, str) @@ -1850,6 +1853,12 @@ """ self.clientExit.emit(program, int(status), message, False, debuggerId) + def signalMainClientExit(self): + """ + Public method to process the main client exiting. + """ + self.mainClientExit.emit() + def signalLastClientExited(self): """ Public method to process the last client exit event.