aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/Lib/pdb.py
diff options
context:
space:
mode:
Diffstat (limited to 'Lib/pdb.py')
-rwxr-xr-xLib/pdb.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/pdb.py b/Lib/pdb.py
index 67f8d57c1a7..1e4d0a20515 100755
--- a/Lib/pdb.py
+++ b/Lib/pdb.py
@@ -1741,7 +1741,7 @@ class Pdb(bdb.Bdb, cmd.Cmd):
contains all the (global and local) names found in the current scope.
"""
ns = {**self.curframe.f_globals, **self.curframe_locals}
- code.interact("*interactive*", local=ns)
+ code.interact("*interactive*", local=ns, local_exit=True)
def do_alias(self, arg):
"""alias [name [command]]