list [procedure | SourcelineExpression] [,SourcelineExpression]
The SourcelineExpression argument should consist of a valid line number followed by an optional + or - and an integer. In addition, a SourcelineExpression of $ can be used to denote the current line number, and a SourcelineExpression of @ can be used to denote the next line number to be listed.
All lines from the first line number specified to the second line number specified, inclusive, are then displayed, provided these lines fit in the list window.
If the second source line is omitted, ten lines are printed, beginning with the line number specified in the SourcelineExpression argument.
If the list subcommand is used without arguments, the default number of lines are printed, beginning with the current source line. The default is 10.
To change the number of lines to list by default, set the special debug program variable, $listwindow, to the number of lines you want. Initially, $listwindow is set to 10.
The list subcommand can be run only while the dbx debug program is running.
list 1,10
list main
list $-5,$+5
The edit, listi, move, and set subcommands.