Native Inspect Manual (H06.07+)

Syntax of Native Inspect Commands
Native Inspect Manual528122-006
4-59
print command
Considerations
Other functions of the print command (illustrated in Examples on page 4-60)
include:
To view an appropriately formatted SPI buffer, you must use Visual Inspect instead
of Native Inspect. Native Inspect does not support the formatting of SPI buffers.
For C/C++, character pointers are displayed until a terminating null or the
configured maximum number of elements is displayed. Use the set print elements
number command to control the maximum number of elements printed for strings
or arrays.
For pTAL, only one character of a pointer to a string is printed. An array of strings
is printed as an array with each different element printed separately. If the
elements are all characters, however, they are printed as one string.
After you enter a print command, you can repeat it by pressing the Enter key at the
next Native Inspect prompt. The effect is the same as if you had entered another
print command with the same parameters. This ability to repeat continues until you
enter any other Native Inspect command.
Print Command Form
Function
print (cast-type) variable Displays a variable formatted as a specific type
(specified by a C/C++ cast expression)
print {struct} buffer Displays a buffer formatted as the specified
structure. Equivalent to the DISPLAY AS
command in Inspect.
print variable@elements Displays the specified number of instances of a
variable.
Example: print var@2
print array[index]@count Displays a range of array elements.
print file::variable print
function::variable
Displays a static variable in a specific file or
function
print var=exp Evaluates an expression and assigns the result
to a variable. The expression can be any valid
C expression. This command is equivalent to
this set command:
set variable var = exp