--- a/eric6/DebugClients/Python/DebugClientBase.py Sun Feb 16 12:42:12 2020 +0100 +++ b/eric6/DebugClients/Python/DebugClientBase.py Sun Feb 16 16:14:25 2020 +0100 @@ -1502,13 +1502,17 @@ elif not isinstance(status, int): message = str(status) status = 1 - + if message is None: + message = "" + if self.running: self.set_quit() + program = self.running self.running = None self.sendJsonCommand("ResponseExit", { "status": status, "message": message, + "program": program, }) # reset coding @@ -2164,7 +2168,6 @@ res = self.mainThread.run(code, self.debugMod.__dict__, debug=True) else: res = 42 # should not happen - self.progTerminated(res) return res def run_call(self, scriptname, func, *args): @@ -2208,6 +2211,7 @@ time.sleep(3) return None + # TODO: add support for the '-m' python invocation => '--module' def main(self): """ Public method implementing the main method.