我要评分
获取效率
正确性
完整性
易理解

list

Command Function

Displays several lines of code before and after the pause location of the current application.

Syntax

list [-h | --help] [-r RANK_ID | --rank RANK_ID] [-t THREAD_INDEX | --thread THREAD_INDEX] [-l LINE_NUMBER | --lines LINE_NUMBER]

The list command can be abbreviated as l.

Parameter Description

Table 1 list command parameters

Parameter

Description

-h/--help

Obtains help information. This parameter is optional.

-r/--rank

Rank ID. This parameter is optional.

-t/--thread

Thread index. This parameter is optional.

-l/--lines

Number of code lines before and after the current pause location, excluding the current line. This parameter is optional.

Example

Display the information about list functions:

1
list -h

Command output:

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
OVERVIEW
    Run this command to display the code context of the current pause location of the application.

USAGE
    list
    [-h | --help]
    [-r RANK_ID | --rank RANK_ID]
    [-t THREAD_INDEX | --thread THREAD_INDEX]
    [-l LINE_NUMBER | --lines LINE_NUMBER]

OPTIONS
    -h, --help
    Get help information.
    -r, --rank RANK_ID
    Specifies the rank ID of the source code to be queried.
    -t, --thread THREAD_INDEX
    Specifies the thread INDEX of the source code to be queried.
    -l, --lines LINE_NUMBER
    Specifies the number of lines of code before and after the program pause position to be displayed.

EXAMPLE
    # Displays the 10 lines of code before and after the pause location of the rank 0 application.
    list -l 10 -r 0