Skip to content

Commit 121413f

Browse files
committed
Go over jump, skip and eval, and python doc
1 parent 7f298cf commit 121413f

8 files changed

Lines changed: 38 additions & 16 deletions

File tree

docs/commands/data/eval.rst

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ given, the following translations occur:
1414

1515
::
1616

17-
assert = <expr> => <expr>
17+
assert <expr> => <expr>
1818
{if|elif} <expr> : => <expr>
1919
while <expr> : => <expr>
2020
return <expr> => <expr>
@@ -37,5 +37,6 @@ Eval Examples
3737

3838
.. seealso::
3939

40+
:ref:`python <python>`,
4041
:ref:`set autoeval <set_autoeval>`, :ref:`pr <pr>`,
4142
:ref:`pp <pp>` and :ref:`examine <examine>`.

docs/commands/running/jump.rst

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,18 @@ Jump
66

77
**jump** *lineno*
88

9-
Set the next line that will be executed. The line must be within the
10-
stopped or bottom-most execution frame.
9+
Set the next line that will be executed.
10+
11+
There are a number of limitations on what line can be set.
12+
13+
You can't jump:
14+
15+
* into the body of a for loop
16+
* into an ``except`` block from outside
17+
* outside or inside of a code block you are stopped
18+
1119

1220
.. seealso::
1321

14-
:ref:`step <step>` :ref:`skip <skip>`, :ref:`next <next>`, :ref:`continue <continue>`, and :ref:`finish <finish>` provide other ways to progress
22+
:ref:`skip <skip>`,
23+
:ref:`next <next>`, :ref:`step <step>` :ref:`continue <continue>`, and :ref:`finish <finish>` provide other ways to progress.

docs/commands/running/skip.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,9 @@ Skip
66

77
**skip** [*count*]
88

9-
Set the next line that will be executed. The line must be within the
10-
stopped or bottom-most execution frame.
9+
Skip over (don't run) the next line that will be executed.
1110

1211
.. seealso::
1312

14-
:ref:`step <step>` :ref:`jump <jump>`, :ref:`continue <continue>`, and :ref:`finish <finish>` provide other ways to progress execution.
13+
:ref:`next <next>`, :ref:`step <step>`, :ref:`jump <jump>`, :ref:`continue <continue>`, and
14+
:ref:`finish <finish>` provide other ways to progress execution.

docs/commands/support/python.rst

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,4 +20,6 @@ To issue a debugger command use function *dbgr()*. For example:
2020

2121
.. seealso::
2222

23+
:ref:`eval <eval>`,
24+
:ref:`set autoeval <set_autoeval>`,
2325
:ref:`ipython <ipython>`, and :ref:`bpython <bpython>`.

docs/manpages/trepan3kc.rst

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,4 @@ Options
3636
See also
3737
--------
3838

39-
:ref:`trepan3k` (1)
40-
4139
Full Documentation is available at http://python3-trepan.readthedocs.org

trepan/processor/command/eval.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# -*- coding: utf-8 -*-
22
#
3-
# Copyright (C) 2012-2013, 2015, 2017, 2020, 2023 Rocky Bernstein
3+
# Copyright (C) 2012-2013, 2015, 2017, 2020, 2023-2024 Rocky Bernstein
44
#
55
# This program is free software: you can redistribute it and/or modify
66
# it under the terms of the GNU General Public License as published by
@@ -29,7 +29,7 @@ class EvalCommand(DebuggerCommand):
2929
about to be run. If the command ends `?` (via an alias) and no string is
3030
given, the following translations occur:
3131
32-
assert = <expr> => <expr>
32+
assert <expr> => <expr>
3333
{if|elif} <expr> : => <expr>
3434
while <expr> : => <expr>
3535
return <expr> => <expr>
@@ -53,7 +53,7 @@ class EvalCommand(DebuggerCommand):
5353
See also:
5454
---------
5555
56-
`deval`, `set autoeval`, `pr`, `pp` and `examine`."""
56+
`python`, `deval`, `set autoeval`, `pr`, `pp` and `examine`."""
5757

5858
aliases = ("eval?", "?")
5959
short_help = "Print value of expression EXP"

trepan/processor/command/jump.py

Lines changed: 15 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,21 @@
2626
class JumpCommand(DebuggerCommand):
2727
"""**jump** *lineno*
2828
29-
Set the next line that will be executed. The line must be within the
30-
stopped or bottom-most execution frame."""
29+
Set the next line that will be executed.
30+
31+
There are a number of limitations on what line can be set.
32+
33+
You can't jump:
34+
- into the body of a for loop
35+
- into an 'except' block from outside
36+
- outside or inside of a code block you are stopped
37+
38+
See also:
39+
---------
40+
41+
`skip`, `next`, `step`, `jump`, `continue`, `return` and
42+
`finish` for other ways to progress execution.
43+
"""
3144

3245
aliases = ("j",)
3346
category = "running"

trepan/processor/command/skip.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,7 @@
2323
class SkipCommand(DebuggerCommand):
2424
"""**skip** [*count*]
2525
26-
Set the next line that will be executed. The line must be within the
27-
stopped or bottom-most execution frame.
26+
Skip over (don't run) the next line that will be executed.
2827
2928
See also:
3029
---------

0 commit comments

Comments
 (0)