HomeManualTopicsTypesSymbols

std::dump

writes a string representation of some objects to stdout

Parameter

args*
an alternating sequence of names and values

Results

None

Description

Attention: This function must be called with I/O-access rights!

The function displays a label before each object.

To display an object's details the function uses serialization.

The string representation is converted to utf-8 before beeing written.

Example

$fruits list("apple" "banana" "cherry") dump `fruits

Output

fruits: list <3> "apple" "banana" "cherry"

Example

$value_1 27 $value_2 list("Peter" 'x' list(47 11)) dump! `value_1 `value_2 `(2*sqrt(9))

Output

value_1: 27 value_2: list <3> "Peter" 'x' list <2> 47 11 (2*sqrt(9)): 6.0

Topic

Debug

See also

std::edump print an object dump to stderr
std::dump_to writes a string representation of some objects to the given file descriptor
debug::dump writes a string representation of an object to stderr
debug::dump_object writes a string representation of an object to stderr