Devel-Trepan-0.60

Synopsis:

list[>] [filename] [first [number]]

list[>] location [number]

List Perl source code.

Without arguments, prints lines centered around the current line. If this is the first list command issued since the debugger command loop was entered, then the current line is the current frame. If a subsequent list command was issued with no intervening frame changing, then that is start the line after we last one previously shown.

If the command has a '>' suffix, then line centering is disabled and listing begins at the specificed location.

The number of lines to show is controlled by the debugger "listsize" setting. Use set max list or show max list to see or set the value.

If the location form is used with a subsequent parameter, the parameter is the starting line number. When there two numbers are given, the last number value is treated as a stopping line unless it is less than the start line, in which case it is taken to mean the number of lines to list instead.

The output of the list command give a line number, and some status information about the line and the text of the line. Here is some hypothetical list output modeled roughly around line 251 of one version of this code: