User`s guide
editor access mode.
If the name is omitted, the program primed for the task or the last
program executed by the task is selected.
An error results if the named program does not exist, and the DEBUG
request is aborted.
When the specified program is opened for (read-only) editing, its name is
added at the top of the SEE editor internal program list.
step An optional parameter that allows you to open a program at the step
number specified.
DEBUG without any parameters is useful when:
1. You want to resume the latest debugging session.
In this case, the edit window and the execution pointer (see Example Program
Debugger Display) are restored as they were when the previous debugging
session was ended. That is, debugging can continue as though it had not been
interrupted.
2. A program has terminated execution with an error, and you want to use the debugger
to investigate the cause.
In this case, the program that failed is displayed in the edit window, with the
execution pointer positioned at the step after the failed step.
Using the Debug Key or the DEBUG Extended Command
While editing a program with the SEE editor, change to the program debugger by pressing
the Debug (S+F11) key or by entering the DEBUG extended command. When the debugger
is invoked from the SEE editor, you are asked which execution task you want to use. Then
the debugger display replaces the normal SEE editor display, with the same program visible
in the edit window and the specified task selected.
While using the program debugger you may decide you want to change the default task
number. You can use the following steps to make that change:
1. If you are in debug monitor mode, press Edit (F11) to select debug editor mode. (The
debug modes are described later in this chapter.)
2. Enter the SEE editor DEBUG extended command.
3. In response to the prompt, enter the desired new task number.
The Program Debugger
(Undefined variable: Primary.Product_Name_V)Language User's Guide, version
17.x
Page 87










