# obtaining the call stack of a function during debugging

**URL:** <https://forums.unrealengine.com/t/obtaining-the-call-stack-of-a-function-during-debugging/2426434>\
**Category:** Programming & Scripting\
**Tags:** unreal-engine, question\
**Created:** [March 29, 2025, 11:51am UTC](https://forums.unrealengine.com/t/obtaining-the-call-stack-of-a-function-during-debugging/2426434 "2025-03-29T11:51:47Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![barbrian0723](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@barbrian0723](https://forums.unrealengine.com/u/barbrian0723)\
**Post date:** [March 29, 2025, 11:51am UTC](https://forums.unrealengine.com/t/obtaining-the-call-stack-of-a-function-during-debugging/2426434/1 "2025-03-29T11:51:47Z")

</div>

hi

is there a way to obtain the call stack of a function during debugging  
i have a function that is called by a number of other functions  
when i run the project in the editor i get an error at some point about a null value referenced in a particular function  
i am trying to figure out which function is the calling function when i hit a null value inside a function according to the call stack

thanks

---

<div class="post-metadata">

**Author:** ![3dRaven](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/3draven/32/906552_2.png) [@3dRaven](https://forums.unrealengine.com/u/3dRaven)\
**Post date:** [March 29, 2025, 12:00pm UTC](https://forums.unrealengine.com/t/obtaining-the-call-stack-of-a-function-during-debugging/2426434/2 "2025-03-29T12:00:40Z")

</div>

Most IDE’s have a callstack window built in that you can check. Just put a breakpoint where you want to start checking.

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/f/5/6/f5624af772e77ef73cef0b2cf430632a5ebb5ae7.png)

You can also put a callstack into a log via

```auto
 FDebug::DumpStackTraceToLog() 

```

> [@How to print callstack into log?](https://forums.unrealengine.com/t/how-to-print-callstack-into-log/363084/6):
>
> I know it’s 2 years late, but FDebug::DumpStackTraceToLog() will do exactly this.

---

<div class="post-metadata">

**Author:** ![barbrian0723](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@barbrian0723](https://forums.unrealengine.com/u/barbrian0723)\
**Post date:** [March 29, 2025, 12:05pm UTC](https://forums.unrealengine.com/t/obtaining-the-call-stack-of-a-function-during-debugging/2426434/3 "2025-03-29T12:05:13Z")

</div>

yes i am already using breakpoints

let me see whether i can find the callstack window in unreal editor 5

---

<div class="post-metadata">

**Author:** ![3dRaven](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/3draven/32/906552_2.png) [@3dRaven](https://forums.unrealengine.com/u/3dRaven)\
**Post date:** [March 29, 2025, 12:06pm UTC](https://forums.unrealengine.com/t/obtaining-the-call-stack-of-a-function-during-debugging/2426434/4 "2025-03-29T12:06:33Z")

</div>

It’s not in Unreal. It’s in your IDE.

There seems to be some resemblance in BP

> **[Blueprint Debugging Example in Unreal Engine | Unreal Engine 5.5 Documentation...](https://dev.epicgames.com/documentation/en-us/unreal-engine/blueprint-debugging-example-in-unreal-engine)**
>
> Pause execution using Breakpoints to inspect graphs and the values of variables.

Look at the blueprint debugger portion.

---

<div class="post-metadata">

**Author:** ![barbrian0723](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@barbrian0723](https://forums.unrealengine.com/u/barbrian0723)\
**Post date:** [March 29, 2025, 12:12pm UTC](https://forums.unrealengine.com/t/obtaining-the-call-stack-of-a-function-during-debugging/2426434/5 "2025-03-29T12:12:01Z")

</div>

seems you are implying there is only some resemblance

---

<div class="post-metadata">

**Author:** ![3dRaven](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/3draven/32/906552_2.png) [@3dRaven](https://forums.unrealengine.com/u/3dRaven)\
**Post date:** [March 29, 2025, 12:42pm UTC](https://forums.unrealengine.com/t/obtaining-the-call-stack-of-a-function-during-debugging/2426434/6 "2025-03-29T12:42:28Z")

</div>

You will only get what unreal serves you. Not a 100% sure it will reflect the full call stack of c++ functions outside of unreal’s blueprints (you can have windows / linux specific calls etc that might not show up)

I only use IDE callstack windows (c++) so I can’t be a certain it’s a 1:1 thing 🙂

---

<div class="post-metadata">

**Author:** ![system](https://d3kjluh73b9h9o.cloudfront.net/original/4X/7/1/3/713c9d3f58553f0de89543d76a8a3a2779dc9fa4.png) [@system](https://forums.unrealengine.com/u/system)\
**Post date:** [April 28, 2025, 12:42pm UTC](https://forums.unrealengine.com/t/obtaining-the-call-stack-of-a-function-during-debugging/2426434/7 "2025-04-28T12:42:41Z")

</div>

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
