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

◆ stack_trace() [5/9]

xtd::diagnostics::stack_trace::stack_trace ( size_t  skip_frames)
explicit

Initializes a new instance of the xtd::diagnostics::stack_trace class from the caller's frame, skipping the specified number of frames.

Parameters
skip_framesThe number of frames up the stack from which to start the trace.
Remarks
The xtd::diagnostics::stack_trace is created with the caller's current thread, and does not contain file name, line number, or column information.
If the number of frames to skip is greater than or equal to the total number of frames on the call stack at the time the instance is created, the xtd::diagnostics::stack_trace will contain no frames.