Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cpython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
cpython
Commits
c18574c9
Commit
c18574c9
authored
Oct 22, 2008
by
Benjamin Peterson
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix #4150: pdb's up command didn't work for generators in post-mortem
parent
cd29e9d9
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
7 additions
and
6 deletions
+7
-6
Lib/bdb.py
Lib/bdb.py
+2
-0
Lib/pdb.py
Lib/pdb.py
+2
-6
Misc/NEWS
Misc/NEWS
+3
-0
No files found.
Lib/bdb.py
View file @
c18574c9
...
...
@@ -320,6 +320,8 @@ class Bdb:
while
t
is
not
None
:
stack
.
append
((
t
.
tb_frame
,
t
.
tb_lineno
))
t
=
t
.
tb_next
if
f
is
None
:
i
=
max
(
0
,
len
(
stack
)
-
1
)
return
stack
,
i
#
...
...
Lib/pdb.py
View file @
c18574c9
...
...
@@ -1224,9 +1224,7 @@ def post_mortem(t=None):
p
=
Pdb
()
p
.
reset
()
while
t
.
tb_next
is
not
None
:
t
=
t
.
tb_next
p
.
interaction
(
t
.
tb_frame
,
t
)
p
.
interaction
(
None
,
t
)
def
pm
():
post_mortem
(
sys
.
last_traceback
)
...
...
@@ -1289,9 +1287,7 @@ def main():
print
"Uncaught exception. Entering post mortem debugging"
print
"Running 'cont' or 'step' will restart the program"
t
=
sys
.
exc_info
()[
2
]
while
t
.
tb_next
is
not
None
:
t
=
t
.
tb_next
pdb
.
interaction
(
t
.
tb_frame
,
t
)
pdb
.
interaction
(
None
,
t
)
print
"Post mortem debugger finished. The "
+
mainpyfile
+
" will be restarted"
...
...
Misc/NEWS
View file @
c18574c9
...
...
@@ -24,6 +24,9 @@ Core and Builtins
Library
-------
- Issue #4150: Pdb's "up" command now works for generator frames in post-mortem
debugging.
- Issue #4092: Return ArgInfo as promised in the documentation from
inspect.getargvalues.
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment