summaryrefslogtreecommitdiff
path: root/Lib/pdb.py
diff options
context:
space:
mode:
authorJohannes Gijsbers <jlg@dds.nl>2004-11-07 11:35:30 +0000
committerJohannes Gijsbers <jlg@dds.nl>2004-11-07 11:35:30 +0000
commitf5b9cfaf8248f40c350476b96077c244cfe20868 (patch)
treeccc1189dcc364d603176cb02ed9abbd78880d123 /Lib/pdb.py
parent165c6e3732b1f0d411f795cad421e7f3363b38b3 (diff)
downloadcpython-f5b9cfaf8248f40c350476b96077c244cfe20868.tar.gz
Bug #1055168: calling pdb.set_trace() calls Bdb.set_trace, which made
the debugger enter inside pdb.set_trace. Patch #1061767: make pdb.set_trace enter enter at the stack frame calling pdb.set_trace().
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 b608adf2d4..7b5dffa3b6 100755
--- a/Lib/pdb.py
+++ b/Lib/pdb.py
@@ -997,7 +997,7 @@ def runcall(*args, **kwds):
return Pdb().runcall(*args, **kwds)
def set_trace():
- Pdb().set_trace()
+ Pdb().set_trace(sys._getframe().f_back)
# Post-Mortem interface