xtd 0.2.0
Loading...
Searching...
No Matches

◆ to_string()

xtd::ustring xtd::diagnostics::stack_trace::to_string ( ) const
overridevirtualnoexcept

Builds a readable representation of the stack trace.

Returns
A readable representation of the stack trace.
Examples
The following code example writes stack trace information to an event log entry.
stack_frame fr(1, true);
stack_trace st(fr);
debug::write_line(ustring::format("{}\n{}", fr.get_method(), st.to_string());
static void write_line()
Writes a line terminator to the trace listeners in the listeners collection.
Definition debug.h:376
Provides information about a xtd::diagnostics::stack_frame, which represents a function call on the c...
Definition stack_frame.h:40
Represents a stack trace, which is an ordered collection of one or more stack frames.
Definition stack_trace.h:40
static ustring format(const ustring &fmt, args_t &&... args)
Writes the text representation of the specified arguments list, to string using the specified format ...
Definition ustring.h:1177

Reimplemented from xtd::object.