diff -r 0d596bb4a60d -r 4a9900aef04e eric6/Debugger/DebugServer.py --- a/eric6/Debugger/DebugServer.py Sun Feb 16 12:42:12 2020 +0100 +++ b/eric6/Debugger/DebugServer.py Sun Feb 16 16:14:25 2020 +0100 @@ -67,9 +67,9 @@ @signal clientSignal(message, filename, linenumber, function name, function arguments, debuggerId) emitted after a signal has been generated on the client side - @signal clientExit(int, str, bool, str) emitted after the client has exited - giving the exit status, an exit message, an indication to be quiet and - the ID of the exited client + @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 lastClientExited() emitted to indicate that the last connected debug client has terminated @signal clientClearBreak(filename, lineno, debuggerId) emitted after the @@ -139,7 +139,7 @@ clientException = pyqtSignal(str, str, list, str) clientSyntaxError = pyqtSignal(str, str, int, int, str) clientSignal = pyqtSignal(str, str, int, str, str, str) - clientExit = pyqtSignal(int, str, bool, str) + clientExit = pyqtSignal(str, int, str, bool, str) lastClientExited = pyqtSignal() clientBreakConditionError = pyqtSignal(str, int, str) clientWatchConditionError = pyqtSignal(str, str) @@ -1788,10 +1788,12 @@ self.clientSignal.emit(message, filename, lineNo, funcName, funcArgs, debuggerId) - def signalClientExit(self, status, message, debuggerId): + def signalClientExit(self, program, status, message, debuggerId): """ Public method to process the client exit status. + @param program name of the exited program + @type str @param status exit code @type int @param message message sent with the exit @@ -1799,7 +1801,7 @@ @param debuggerId ID of the debugger backend @type str """ - self.clientExit.emit(int(status), message, False, debuggerId) + self.clientExit.emit(program, int(status), message, False, debuggerId) def signalLastClientExited(self): """ @@ -2068,7 +2070,7 @@ """ self.utFinished.emit() - self.clientExit.emit(int(status), "", True, "") + self.clientExit.emit("", int(status), "", True, "") self.debugging = False self.running = False