Chapter Contents |
Previous |
Next |
Command Directory |
Output a Source Line Listing in Line Mode
Move to a Source Line in Full-Screen Mode
l{ist}
list
command lists source lines in a program executing under the debugger.
Format 1: In full-screen mode, this format
of the list
command can be used to return the
debugger to the current line in the command scope. In full-screen mode, source
code is displayed in the Source window and the current line is highlighted.
The Status window displays the command scope as described in Using the Status Window.
Format 2: In full-screen mode, the optional :+INTEGER is meaningless; the number of lines displayed in the Source window is determined by the Source window height. However, this format can be used to move to a specific line in the module that is currently displayed in the Source window; although, it is much easier to move to a line by specifying the module and line number in the Module: and Line: fields of the Source window. See Source Window for information about the Module: and Line: fields.
In line mode, each time a range of lines is displayed (a single line can also be thought of as a range of lines), the debugger remembers two lines: LS is the start of the range, and LE is the end of the range. Stopping at a new location resets both LS and LE to the line number of the new location. The relative formats then function as shown in Results of Using the list Command Relative Formats.
TABLE NOTE 1: N1 and N2 are INTEGER arguments.
Format 6: In line mode, this format lists
all lines in the source file or, optionally, all lines in a named section
or function. SECTION-NAME is a section name for your program as specified
with the
sname
compiler option or the default. FUNCTION-NAME
is the name of a function. You can specify any function name or section name
in the calling sequence.
list
list func1 *
func1
function.
list (comp23) 200:220
comp23
compilation.
PROFILE | no |
configuration file | no |
Source window prefix | none |
list
command uses command scope to supply default function names and section names.
Successful: number of last line listed | |
Unsuccessful: 0 |
Chapter Contents |
Previous |
Next |
Top of Page |
Copyright © 2001 by SAS Institute Inc., Cary, NC, USA. All rights reserved.