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
3a98e78a
Commit
3a98e78a
authored
Sep 17, 1998
by
Guido van Rossum
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Richard Wolff's additional changes; some layout nits, and change the
alias delimiter to ';;'.
parent
1d2e9d19
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
11 deletions
+11
-11
Lib/pdb.py
Lib/pdb.py
+11
-11
No files found.
Lib/pdb.py
View file @
3a98e78a
...
...
@@ -69,7 +69,7 @@ class Pdb(bdb.Bdb, cmd.Cmd):
self
.
forget
()
self
.
stack
,
self
.
curindex
=
self
.
get_stack
(
f
,
t
)
self
.
curframe
=
self
.
stack
[
self
.
curindex
][
0
]
self
.
execRcLines
()
;
self
.
execRcLines
()
# Can be executed earlier than 'setup' if desired
def
execRcLines
(
self
):
...
...
@@ -128,7 +128,7 @@ class Pdb(bdb.Bdb, cmd.Cmd):
print
'***'
,
exc_type_name
+
':'
,
v
def
precmd
(
self
,
line
):
# Handle alias expansion and ';' separator
# Handle alias expansion and ';
;
' separator
if
not
line
:
return
line
args
=
string
.
split
(
line
)
...
...
@@ -139,18 +139,18 @@ class Pdb(bdb.Bdb, cmd.Cmd):
line
=
string
.
replace
(
line
,
"%"
+
str
(
ii
),
tmpArg
)
ii
=
ii
+
1
line
=
string
.
replace
(
line
,
"%*"
,
string
.
join
(
args
[
1
:],
' '
))
line
=
string
.
replace
(
line
,
"%*"
,
string
.
join
(
args
[
1
:],
' '
))
args
=
string
.
split
(
line
)
# split into ';' separated commands
# split into ';
;
' separated commands
# unless it's an alias command
if
args
[
0
]
!=
'alias'
:
semicolon
=
string
.
find
(
line
,
'
;'
)
if
semicolon
>=
0
:
# queue up everything after
semicolon
next
=
string
.
lstrip
(
line
[
semicolon
+
1
:])
marker
=
string
.
find
(
line
,
';
;'
)
if
marker
>=
0
:
# queue up everything after
marker
next
=
string
.
lstrip
(
line
[
marker
+
2
:])
self
.
cmdqueue
.
append
(
next
)
line
=
string
.
rstrip
(
line
[:
semicolon
])
line
=
string
.
rstrip
(
line
[:
marker
])
return
line
# Command definitions, called by cmdloop()
...
...
@@ -641,7 +641,7 @@ class Pdb(bdb.Bdb, cmd.Cmd):
self
.
help_b
()
def
help_b
(
self
):
print
"""b(reak) ([file:]lineno | function) [,
"condition"
]
print
"""b(reak) ([file:]lineno | function) [,
condition
]
With a line number argument, set a break there in the current
file. With a function name, set a break at first executable line
of that function. Without argument, list all breaks. If a second
...
...
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