HomeManualTopicsTypesSymbols

debug::string

returns a string representation of the given object

Parameters

object
the object to be converted to a string
indent (default: 0)
the base indentation to use
depth (default: 1)
the desired level of detail (recursion depth)

Results

None

Description

This function uses introspection to display the object's attributes.

The returned string can contain multiple lines and is always terminated with a line feed.

A negative indent is the same as a positive indent; but for multi-line results the result string starts with a line feed.

Example

$SYMBOL . print! debug::string(SYMBOL)

Output

SYMBOL

Topic

Debug

See also

debug::dump_object writes a string representation of an object to stderr
debug::dump writes a string representation of an object to stderr
std::dump writes a string representation of some objects to stdout
std::edump print an object dump to stderr