Printing accurate callstack in Unreal Engine

Posted on Feb 8, 2024

When debugging Unreal Engine code, when breakpoint is reached, the callstack is usually very hard to digest when there is back and forth between native code and blueprints. Fortunately there is a way to print accurate callstack using Immediate Window in Visual Studio or by Evaluating Expression in Rider. In case of Rider, once the command is evaluated open Debugger Output to see the printed callstack.

UE4 Editor Build

{,,UE4Editor-Core}::PrintScriptCallstack()

UE5 Editor Build

{,,UnrealEditor-Core}::PrintScriptCallstack()

Standalone/Package Build

::PrintScriptCallstack()

Source: https://thomassampson.co.uk/posts/ue4-blueprint-callstack/