mirror of
https://github.com/python/cpython.git
synced 2025-08-30 05:35:08 +00:00
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().
This commit is contained in:
parent
e174ae9a1d
commit
84a6c205e3
2 changed files with 8 additions and 4 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue