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
d6c3f25f
Commit
d6c3f25f
authored
Jan 12, 1992
by
Guido van Rossum
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
react to interrupts differently
parent
bba77af3
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
0 deletions
+5
-0
Lib/pdb.py
Lib/pdb.py
+5
-0
No files found.
Lib/pdb.py
View file @
d6c3f25f
...
...
@@ -9,6 +9,8 @@
# - Where and when to stop exactly when 'next' encounters a return?
# (should be level-based -- don't trace anything deeper than current)
# - Show stack traces upside-down (like dbx/gdb)
# - When stopping on an exception, show traceback stack
# - Merge with tb (for post-mortem usage)
import
string
import
sys
...
...
@@ -120,6 +122,9 @@ class Pdb(Cmd):
if
self
.
botframe
is
None
:
self
.
botframe
=
frame
if
where
==
'exception'
:
if
self
.
whatnext
==
'continue'
and
\
arg
[
0
]
is
not
KeyboardInterrupt
:
return
self
.
trace
stop
=
1
elif
self
.
whatnext
==
'continue'
:
stop
=
0
...
...
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