Skip to content

Commit fff1d0e

Browse files
committed
Go over jump command docs
1 parent 9a5c903 commit fff1d0e

File tree

2 files changed

+18
-2
lines changed

2 files changed

+18
-2
lines changed

docs/commands/running/jump.rst

+8-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
.. index:: jump
2-
.. _jump:
32

43
Jump
54
----
@@ -16,8 +15,15 @@ You can't jump:
1615
* into an ``except`` block from outside
1716
* outside or inside of a code block you are stopped
1817

18+
Jumping to a previous line is one way to reexecuting code.
19+
Jumping to a return statement may get you back to the caller
20+
function without running more code in the current frame.
1921

2022
.. seealso::
2123

2224
:ref:`skip <skip>`,
23-
:ref:`next <next>`, :ref:`step <step>` :ref:`continue <continue>`, and :ref:`finish <finish>` provide other ways to progress.
25+
:ref:`next <next>`, :ref:`step <step>` :ref:`continue <continue>`, and
26+
:ref:`finish <finish>` provide other ways to progress.
27+
28+
:ref:eval <eval>: can be used to run Python code without changing the
29+
execution line.

trepan/processor/command/jump.py

+10
Original file line numberDiff line numberDiff line change
@@ -31,15 +31,25 @@ class JumpCommand(DebuggerCommand):
3131
There are a number of limitations on what line can be set.
3232
3333
You can't jump:
34+
3435
- into the body of a for loop
36+
3537
- into an 'except' block from outside
38+
3639
- outside or inside of a code block you are stopped
3740
41+
Jumping to a previous line is one way to reexecuting code.
42+
Jumping to a return statement may be similar to you back to the caller
43+
without running more code in the current frame.
44+
3845
See also:
3946
---------
4047
4148
`skip`, `next`, `step`, `jump`, `continue`, `return` and
4249
`finish` for other ways to progress execution.
50+
51+
`eval` can be used to run Python code without changing the
52+
execution line.
4353
"""
4454

4555
aliases = ("j",)

0 commit comments

Comments
 (0)