#include "Stroika/Foundation/StroikaPreComp.h"
#include <limits>
#include "Stroika/Foundation/Characters/String.h"
Go to the source code of this file.
Namespaces | |
namespace | Stroika::Foundation |
Functions | |
wstring | Stroika::Foundation::Debug::BackTrace::Capture (const Options &options={}) |
wstring Stroika::Foundation::Debug::BackTrace::Capture | ( | const Options & | options = {} | ) |
Return a string/printable version of the current stack backtrace (deepest part of the stack first). This is handy in debugging.
This function will fail gracefully and return an empty string if needed.
There are cases where one would want to limit the number of 'stack frames' returned - since this is just used for debugging...
The frames are EOL (line) delimited.
This DOES - however - however, call STL routines and C-library routines, like string::CTOR {}
You can construct a Execution::Platform::Windows::COMInitializer before any invocations to Capture() (stacktrace) - to avoid problems caused by this (only really affects COM-based applications).
For now, typically delegate to https://www.boost.org/doc/libs/1_65_1/doc/html/stacktrace.html
Definition at line 46 of file BackTrace.cpp.