4.3.2 Screen Mode
To invoke screen mode, press PF3. In screen mode by default
the debugger splits the screen into three displays called SRC,
OUT, and PROMPT.
--SRC: module SAMPLE$MAIN -scroll-source--------------------------
1: 10 !SAMPLE
2:
3: EXTERNAL SUB TRIPLE &
4: ,PRINT_SUB
5:
6: WHEN ERROR USE HANDLER_1
-> 7: CALL TRIPLE
8: CALL PRINT_SUB
9:
- OUT -output---------------------------------------------
stepped to SAMPLE$MAIN\%LINE 7
- PROMPT -error-program-prompt----------------------------
DBG> STEP
DBG>
The SRC display, at the top of the screen, shows the source
code of the module (compilation unit) that is currently exe-
cuting. An arrow in the left column points to the next line to
be executed, which corresponds to the current location of the
program counter (PC). The line numbers, which are assigned
by the compiler, match those in a listing file.
The PROMPT display, at the bottom of the screen, shows the
debugger prompt (DBG>), your input, debugger diagnostic
messages, and program output. In the example, the debugger
commands that have been issued are shown.
The OUT display, in the center of the screen, captures the
debugger's output in response to the commands that you
issue.
The SRC and OUT displays are scrollable so that you can see
whatever information may scroll beyond the display win-
dow's edge. Press KP8 to scroll up and KP2 to scroll down.
Press KP3 to change the display to be scrolled (by default, the
SRC display is scrolled). Scrolling a display does not affect
program execution.
If the debugger cannot locate source lines for the currently
executing module, it tries to display source lines in the next
module down on the call stack for which source lines are
available and issues the following message:
%DEBUG-I-SOURCESCOPE, Source lines not available for .0\%PC.
Displaying source in a caller of the current routine.
Source lines may not be available for the following reasons: