Muokkaa

Jaa


lsp (Set Number of Source Lines)

The lsp command controls how many source lines are displayed while you step through or execute code or use the ls and lsa commands.

lsp [-a] LeadingLines TrailingLines 
lsp [-a] TotalLines 
lsp [-a] 

Parameters

-a
Sets or displays the number of lines that ls and lsa show. If you omit -a, lsp sets or displays the number of lines that are shown while you step through and execute code.

LeadingLines
Specifies the number of lines to show before the current line.

TrailingLines
Specifies the number of lines to show after the current line.

TotalLines
Specifies the total number of lines to show. This number is divided evenly between leading and trailing lines. (If this number is odd, more trailing lines are displayed.)

Environment

Item Description
Modes User mode, kernel mode
Targets Live, crash dump
Platforms All

Remarks

When you use the lsp command together with no parameters, lsp displays the current leading line and trailing line values that you used while stepping. When you use this command together with only the -a parameter, lsp displays the values that you used while stepping and for the ls and lsa commands.

When you step through a program or break in after program execution, the previous lsp command determines the number of leading and trailing lines that are displayed. When you use lsa, the previous lsp -a command determines the number of leading and trailing lines that are displayed. When you use ls, all lines appear as a single block, so the previous lsp -a command determines the total number of lines that are displayed.

Additional Information

For more information about source debugging and related commands, see Debugging in Source Mode.