Skip to content

Commit 31a92b3

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

File tree

2 files changed

+15
-2
lines changed

2 files changed

+15
-2
lines changed

docs/commands/running/jump.rst

Lines changed: 8 additions & 2 deletions
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

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,11 +35,18 @@ class JumpCommand(DebuggerCommand):
3535
- into an 'except' block from outside
3636
- outside or inside of a code block you are stopped
3737
38+
Jumping to a previous line is one way to reexecuting code.
39+
Jumping to a return statement may be similar to you back to the caller
40+
without running more code in the current frame.
41+
3842
See also:
3943
---------
4044
4145
`skip`, `next`, `step`, `jump`, `continue`, `return` and
4246
`finish` for other ways to progress execution.
47+
48+
`eval` can be used to run Python code without changing the
49+
execution line.
4350
"""
4451

4552
aliases = ("j",)

0 commit comments

Comments
 (0)