From 7747c0d46bfbda35133a1bf3273aa2e468b2946c Mon Sep 17 00:00:00 2001 From: Marcel Partap Date: Fri, 1 Aug 2025 11:44:22 +0200 Subject: [PATCH] =?UTF-8?q?Avoid=20crashing=20debugged=20program=20with=20?= =?UTF-8?q?a=20bdb.BdbQuit=20exception=20=E2=98=A0=EF=B8=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pudb/debugger.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pudb/debugger.py b/pudb/debugger.py index 118904d0..23a434e9 100644 --- a/pudb/debugger.py +++ b/pudb/debugger.py @@ -2298,7 +2298,7 @@ def __call__(subself, w, size, key): # noqa # pylint: disable=no-self-argument def quit(w, size, key): with open(self.cmdline_history_path, "w") as history: history.write("\n".join(self.cmdline_history)) - self.debugger.set_quit() + sys.settrace(None) end() def do_edit_config(w, size, key):