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
654948e2
Commit
654948e2
authored
Mar 27, 1992
by
Guido van Rossum
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
use settrace() intreface
parent
7416ff31
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
5 deletions
+3
-5
Lib/bdb.py
Lib/bdb.py
+3
-5
No files found.
Lib/bdb.py
View file @
654948e2
...
...
@@ -145,8 +145,7 @@ class Bdb: # Basic Debugger
self
.
stopframe
=
self
.
botframe
self
.
returnframe
=
None
self
.
quitting
=
1
sys
.
trace
=
None
del
sys
.
trace
sys
.
settrace
(
None
)
# Derived classes and clients can call the following functions
# to manipulate breakpoints. These functions return an
...
...
@@ -245,15 +244,14 @@ class Bdb: # Basic Debugger
def
runctx
(
self
,
cmd
,
globals
,
locals
):
self
.
reset
()
sys
.
trace
=
self
.
trace_dispatch
sys
.
settrace
(
self
.
trace_dispatch
)
try
:
exec
(
cmd
+
'
\
n
'
,
globals
,
locals
)
except
BdbQuit
:
pass
finally
:
self
.
quitting
=
1
sys
.
trace
=
None
del
sys
.
trace
sys
.
settrace
(
None
)
# XXX What to do if the command finishes normally?
...
...
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