Navigation
API > API/Runtime > API/Runtime/Core > API/Runtime/Core/FMicrosoftPlatformStackWalk
Description
Helper for Microsoft platforms to capture a stacktrace for a specific thread. If the thread is not the calling thread, it should already have been suspended by the calling code.
| Name | CaptureStackTraceInternal |
| Type | function |
| Header File | /Engine/Source/Runtime/Core/Public/Microsoft/MicrosoftPlatformStackWalk.h |
| Include Path | #include "Microsoft/MicrosoftPlatformStackWalk.h" |
| Source | /Engine/Source/Runtime/Core/Private/Microsoft/MicrosoftPlatformStackWalk.cpp |
static int32 CaptureStackTraceInternal
(
uint64 * OutBacktrace,
uint32 MaxDepth,
void * Context,
void * ThreadHandle,
uint32 * OutDepth
)
EXCEPTION_EXECUTE_HANDLER
Parameters
| Name | Remarks |
|---|---|
| OutBackTrace | Array to write backtrace to |
| MaxDepth | Maximum depth to walk - needs to be less than or equal to array size |
| Context | Pointer to a CONTEXT structure containing thread context info (registers, instruction ptr, etc) |
| ThreadHandle | HANDLE for the thread whose stack should be walked. |
| OutDepth | Number of stack frames returned. |