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
1f00eed8
Commit
1f00eed8
authored
Jul 22, 1998
by
Guido van Rossum
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Feature added by Harri Pasanen (at my suggestion): .py suffix on
filename may be omitted.
parent
1ee36ffc
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
3 deletions
+10
-3
Lib/pdb.py
Lib/pdb.py
+10
-3
No files found.
Lib/pdb.py
View file @
1f00eed8
...
...
@@ -421,19 +421,21 @@ class Pdb(bdb.Bdb, cmd.Cmd):
The line number may be prefixed with a filename and a colon,
to specify a breakpoint in another file (probably one that
hasn't been loaded yet). The file is searched on sys.path."""
hasn't been loaded yet). The file is searched on sys.path;
the .py suffix may be omitted."""
def
help_clear
(
self
):
self
.
help_cl
()
def
help_cl
(
self
):
print
"""cl(ear) [lineno]
print
"""cl(ear) [
file:][
lineno]
With a line number argument, clear that break in the current file.
Without argument, clear all breaks (but first ask confirmation).
The line number may be prefixed with a filename and a colon,
to specify a breakpoint in another file (probably one that
hasn't been loaded yet). The file is searched on sys.path."""
hasn't been loaded yet). The file is searched on sys.path;
the .py suffix may be omitted."""
def
help_step
(
self
):
self
.
help_s
()
...
...
@@ -517,6 +519,11 @@ class Pdb(bdb.Bdb, cmd.Cmd):
def
lookupmodule
(
self
,
filename
):
if
filename
==
mainmodule
:
return
mainpyfile
root
,
ext
=
os
.
path
.
splitext
(
filename
)
if
ext
==
''
:
filename
=
filename
+
'.py'
if
os
.
path
.
isabs
(
filename
):
return
filename
for
dirname
in
sys
.
path
:
fullname
=
os
.
path
.
join
(
dirname
,
filename
)
if
os
.
path
.
exists
(
fullname
):
...
...
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