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
26a0f87e
Commit
26a0f87e
authored
Jul 30, 2010
by
Georg Brandl
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Document the "jump" command in pdb.__doc__, and add a version tag for "until X".
parent
2dfec552
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
13 additions
and
0 deletions
+13
-0
Doc/library/pdb.rst
Doc/library/pdb.rst
+3
-0
Lib/pdb.py
Lib/pdb.py
+10
-0
No files found.
Doc/library/pdb.rst
View file @
26a0f87e
...
...
@@ -339,6 +339,9 @@ by the local file.
equal to that is reached. In both cases, also stop when the current frame
returns.
.. versionchanged:: 3.2
Allow giving an explicit line number.
.. pdbcommand:: r(eturn)
Continue execution until the current function returns.
...
...
Lib/pdb.py
View file @
26a0f87e
...
...
@@ -147,6 +147,16 @@ unt(il) [lineno]
or equal to that is reached. In both cases, also stop when
the current frame returns.
j(ump) lineno
Set the next line that will be executed. Only available in
the bottom-most frame. This lets you jump back and execute
code again, or jump forward to skip code that you don't want
to run.
It should be noted that not all jumps are allowed -- for
instance it is not possible to jump into the middle of a
for loop or out of a finally clause.
r(eturn)
Continue execution until the current function returns.
...
...
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