print Command

The print command prints the value of an expression.

Syntax
print expression, ... Print the value of the expression(s) expression, ....
print -r expression Print the value of the expression expression including its inherited members (C++ only).
print +r expression Don't print inherited members when the dbx output_inherited_members Environment Variable is on (C++ only).
print -d [-r] expression Show dynamic type of expression expression instead of static type (C++ only).
print +d [-r] expression Don't use dynamic type of expression expression when the dbx output_dynamic_type Environment Variable is on (C++ only).
print -p expression Call the prettyprint Function.
print +p expression Do not call the prettyprint Function when the dbx output_pretty_print Environment Variable is on.
print -l expression (`Literal') Do not print the left side. If the expression is a string (char *), do not print the address, just print the raw characters of the string, without quotes.
print -fformat expression Use format as the format for integers, strings, or floating-point expressions (see Output Formats).
print -Fformat expression Use the given format but do not print the left hand side (the variable name or expression) (see Output Formats).
print -o expression Print the value of expression, which must be an enumeration as an ordinal value. You may also use a format string here (-fformat). This option is ignored for non-enumeration expressions.
print -- expression `--' signals the end of flag arguments. This is useful if expression may start with a plus or minus (see Scope for scope resolution rules. See Redirection to redirect the output of the print command and add a trailing comment.)

where:

expression is the expression whose value you want to print.

format is the output format you want used to print the expression.