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
ed538d8b
Commit
ed538d8b
authored
Apr 09, 2003
by
Guido van Rossum
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Detabified.
Removed dead code.
parent
2fb9fdc9
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
20 deletions
+5
-20
Lib/pdb.py
Lib/pdb.py
+5
-20
No files found.
Lib/pdb.py
View file @
ed538d8b
...
...
@@ -527,29 +527,14 @@ class Pdb(bdb.Bdb, cmd.Cmd):
sys
.
settrace
(
None
)
globals
=
self
.
curframe
.
f_globals
locals
=
self
.
curframe
.
f_locals
p
=
Pdb
()
p
.
prompt
=
"(%s) "
%
self
.
prompt
.
strip
()
print
"ENTERING RECURSIVE DEBUGGER"
sys
.
call_tracing
(
p
.
run
,
(
arg
,
globals
,
locals
))
print
"LEAVING RECURSIVE DEBUGGER"
p
=
Pdb
()
p
.
prompt
=
"(%s) "
%
self
.
prompt
.
strip
()
print
"ENTERING RECURSIVE DEBUGGER"
sys
.
call_tracing
(
p
.
run
,
(
arg
,
globals
,
locals
))
print
"LEAVING RECURSIVE DEBUGGER"
sys
.
settrace
(
self
.
trace_dispatch
)
self
.
lastcmd
=
p
.
lastcmd
def
dont_debug
(
self
,
arg
):
locals
=
self
.
curframe
.
f_locals
globals
=
self
.
curframe
.
f_globals
try
:
r
=
sys
.
call_tracing
(
eval
,
(
arg
,
globals
,
locals
))
print
"--- DEBUG RETURNED ---"
if
r
is
not
None
:
print
repr
(
r
)
except
:
t
,
v
=
sys
.
exc_info
()[:
2
]
if
type
(
t
)
==
type
(
''
):
exc_type_name
=
t
else
:
exc_type_name
=
t
.
__name__
print
'***'
,
exc_type_name
+
':'
,
v
def
do_quit
(
self
,
arg
):
self
.
set_quit
()
return
1
...
...
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