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
Parameter |
Option |
Description |
|---|---|---|
-h/--help |
- |
Obtains help information. This parameter is optional. |
-r/--rank |
RANK_ID |
Rank ID. This parameter is optional. |
-t/--thread |
THREAD_INDEX |
Thread index. This parameter is optional. |
-l/--lines |
LINE_NUMBER |
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:
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]
[-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.
-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
Parent topic: Debugging Status Commands