![]() |
UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
|
#include <GenericPlatformStackWalk.h>
Inheritance diagram for FGenericPlatformStackWalk:Classes | |
| struct | EStackWalkFlags |
Public Types | |
| typedef FGenericPlatformStackWalk | Base |
Static Protected Member Functions | |
| static CORE_API bool | WantsDetailedCallstacksInNonMonolithicBuilds () |
Generic implementation for most platforms
|
static |
Capture a stack backtrace and optionally use the passed in exception pointers.
| BackTrace | [out] Pointer to array to take backtrace |
| MaxDepth | Entries in BackTrace array |
| Context | Optional thread context information |
|
static |
Capture a stack backtrace for a specific thread.
| ThreadId | ID of the thread to trace |
| BackTrace | [out] Pointer to array to take backtrace |
| MaxDepth | Entries in BackTrace array |
| Context | Optional thread context information |
|
static |
Converts virtual path to local and write local path to Dest. If no virtual path if sound, Source will be written
|
inlinestatic |
Returns the number of modules loaded by the currently running process.
|
inlinestatic |
Gets the signature for every module loaded by the currently running process.
| ModuleSignatures | An array to retrieve the module signatures. |
| ModuleSignaturesSize | The size of the array pointed to by ModuleSignatures. |
|
static |
Walks the stack and updates the Stack array with the symbol information for each line in the stack.
| IgnoreCount | Number of stack entries to ignore (some are guaranteed to be in the stack walking code) |
| MaxDepth | The maximum depth to trace, can't be more than 100, offset from IgnoreCount. |
| Context | Optional thread context information |
Gets the meta-data associated with all symbols of this target. This may include things that are needed to perform further offline processing of symbol information (eg, the source binary).
|
static |
Initializes options related to stack walking from ini, i.e. how detailed the stack walking should be, performance settings etc.
Initializes stack traversal and symbol. Must be called before any other stack/symbol functions. Safe to reenter.
|
inlinestatic |
Like InitStackWalking but initializes stack walking for another process.
| Process | Process that is going to be queried |
|
static |
Converts the passed in program counter address to a human readable string and appends it to the passed in one.
This method is the same for all platforms to simplify parsing by the crash processor.
Example formatted line:
UE4Editor_Core!FOutputDeviceWindowsErrorSerialize() (0xddf1bae5) + 620 bytes [\engine\source\runtime\core\private\windows\windowsplatformoutputdevices.cpp:110] ModuleName!FunctionName (ProgramCounter) + offset bytes [StrippedFilepath:LineNumber]
| CurrentCallDepth | Depth of the call, if known (-1 if not - note that some platforms may not return meaningful information in the latter case) |
| ProgramCounter | Address to look symbol information up for |
| HumanReadableString | String to concatenate information with |
| HumanReadableStringSize | size of string in characters |
| Context | Pointer to crash context, if any |
|
inlinestatic |
Converts the passed in program counter address to a symbol info struct, filling in module and filename, line number and displacement.
| ProgramCounter | Address to look symbol information up for |
| out_SymbolInfo | Symbol information associated with program counter |
|
inlinestatic |
Same as above, but can be used with external applications since it doesn't re-initialize the active process.
|
static |
Walks the stack and appends the human readable string to the passed in one.
| HumanReadableString | String to concatenate information with |
| HumanReadableStringSize | size of string in characters |
| IgnoreCount | Number of stack entries to ignore (some are guaranteed to be in the stack walking code) |
| Context | Optional thread context information |
|
static |
Walks the stack and appends the human readable string to the passed in one.
| HumanReadableString | String to concatenate information with |
| HumanReadableStringSize | size of string in characters |
| ProgramCounter | Instruction address that should be at the top of the stack |
| Context | Optional thread context information |
|
static |
Walks the stack and appends the human readable string to the passed in one.
| HumanReadableString | String to concatenate information with |
| HumanReadableStringSize | size of string in characters |
| IgnoreCount | Number of stack entries to ignore (some are guaranteed to be in the stack walking code) |
| Flags | Used to pass additional information (see StackWalkFlags) |
| Context | Optional thread context information |
|
static |
Walks the stack and appends the human readable string to the passed in one.
| HumanReadableString | String to concatenate information with |
| HumanReadableStringSize | size of string in characters |
| ProgramCounter | Instruction address that should be at the top of the stack |
| Flags | Used to pass additional information (see StackWalkFlags) |
| Context | Optional thread context information |
|
static |
Converts the passed in symbol information to a human readable string and appends it to the passed in one.
This method is the same for all platforms to simplify parsing by the crash processor.
Example formatted line:
UE4Editor_Core!FOutputDeviceWindowsErrorSerialize() (0xddf1bae5) + 620 bytes [\engine\source\runtime\core\private\windows\windowsplatformoutputdevices.cpp:110] ModuleName!FunctionName (ProgramCounter) + offset bytes [StrippedFilepath:LineNumber]
| SymbolInfo | Symbol information |
| HumanReadableString | String to concatenate information with |
| HumanReadableStringSize | size of string in characters |
| Context | Pointer to crash context, if any |
|
static |
Same as above, but can be used with external applications.
|
inlinestatic |
Walks the stack for the specified thread and appends the human readable string to the passed in one.
| HumanReadableString | String to concatenate information with |
| HumanReadableStringSize | size of string in characters |
| IgnoreCount | Number of stack entries to ignore (some are guaranteed to be in the stack walking code) |
| ThreadId | ThreadId to walk the strack for. |
|
staticprotected |
Returns true if non-monolithic builds should produce full callstacks in the log (and load all debug symbols)