# Tutorial: Advanced Debugging in Unreal Engine

**URL:** <https://forums.unrealengine.com/t/tutorial-advanced-debugging-in-unreal-engine/1334431>\
**Category:** Tutorial & Course Discussions\
**Tags:** unreal-engine\
**Created:** [October 16, 2023, 2:58pm UTC](https://forums.unrealengine.com/t/tutorial-advanced-debugging-in-unreal-engine/1334431 "2023-10-16T14:58:18Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![Ari\_Epic](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/ari_epic/32/1225266_2.png) [@Ari\_Epic](https://forums.unrealengine.com/u/Ari_Epic)\
**Post date:** [October 16, 2023, 2:58pm UTC](https://forums.unrealengine.com/t/tutorial-advanced-debugging-in-unreal-engine/1334431/1 "2023-10-16T14:58:18Z")

</div>

Are you tired of relying on the same old PrintString for bug hunting? Boring! It’s time to level up your Unreal Engine debugging skills!  
Join Unreal Engine Evangelist Ari Arnbjörnsson for a wild ride through advanced techniques and tools that will make bugs quake in their boots!  
  
 [https://dev.epicgames.com/community/learning/tutorials/dXl5/advanced-debugging-in-unreal-engine](https://dev.epicgames.com/community/learning/tutorials/dXl5/advanced-debugging-in-unreal-engine)

---

<div class="post-metadata">

**Author:** ![MattG\_ZeroFill](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/mattg_zerofill/32/563889_2.png) [@MattG\_ZeroFill](https://forums.unrealengine.com/u/MattG_ZeroFill)\
**Post date:** [October 16, 2023, 7:03pm UTC](https://forums.unrealengine.com/t/tutorial-advanced-debugging-in-unreal-engine/1334431/2 "2023-10-16T19:03:08Z")

</div>

Outstanding, thanks!

---

<div class="post-metadata">

**Author:** ![tmek](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@tmek](https://forums.unrealengine.com/u/tmek)\
**Post date:** [October 28, 2023, 6:57am UTC](https://forums.unrealengine.com/t/tutorial-advanced-debugging-in-unreal-engine/1334431/3 "2023-10-28T06:57:12Z")

</div>

Hi Ari!

Thank you so much for making this! This is an amazing collection of debugging tips!

Thomas Kadlec

---

<div class="post-metadata">

**Author:** ![xi57](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/xi57/32/1194660_2.png) [@xi57](https://forums.unrealengine.com/u/xi57)\
**Post date:** [November 4, 2023, 12:33am UTC](https://forums.unrealengine.com/t/tutorial-advanced-debugging-in-unreal-engine/1334431/4 "2023-11-04T00:33:35Z")

</div>

Ari, this is some fantastic work. Thanks for helping developers everywhere!

---

<div class="post-metadata">

**Author:** ![wbSGrosskurth](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@wbSGrosskurth](https://forums.unrealengine.com/u/wbSGrosskurth)\
**Post date:** [November 8, 2023, 3:14pm UTC](https://forums.unrealengine.com/t/tutorial-advanced-debugging-in-unreal-engine/1334431/5 "2023-11-08T15:14:21Z")

</div>

Thank you Ari! This is incredibly helpful.

Quick tip for Rider users: If anyone else is having trouble with watching globals, here is what works for me:

`@ ALREADY PREPROCESSED @{,,<ModuleName>.dll}<VariableName>`

For GPlayInEditorContextString it looks like this:  
`@ ALREADY PREPROCESSED @{,,UnrealEditor-Engine.dll}GPlayInEditorContextString`

Simply add the string above as watch. The `<ModuleName>!<GlobalVarName>` notation does not seem to work in Rider.

---

<div class="post-metadata">

**Author:** ![DomusLudus](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/domusludus/32/1215140_2.png) [@DomusLudus](https://forums.unrealengine.com/u/DomusLudus)\
**Post date:** [November 9, 2023, 4:23am UTC](https://forums.unrealengine.com/t/tutorial-advanced-debugging-in-unreal-engine/1334431/6 "2023-11-09T04:23:09Z")

</div>

Many Thanks!

My grain of sand for blueprinters  
Cheatmanager blueprints have built-in useful funcions to call

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/d/2/f/d2f11334df77319fff13c76f05af7475078983aa.png)

and call your funciones in command line with ke \*, or widget buttons

---

<div class="post-metadata">

**Author:** ![onionmk2](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/onionmk2/32/883738_2.png) [@onionmk2](https://forums.unrealengine.com/u/onionmk2)\
**Post date:** [December 6, 2023, 8:32am UTC](https://forums.unrealengine.com/t/tutorial-advanced-debugging-in-unreal-engine/1334431/7 "2023-12-06T08:32:32Z")

</div>

I learned a lot of debugging techniques that I did not know. Thank you very much.

There are two things that were not in the post that I would recommend as Debugging Tips.  
The first is Rewind Debugger and the second is Gameplay Debugger.

Rewind Debugger

> **[Rewind Debugger](https://docs.unrealengine.com/5.3/en-US/animation-rewind-debugger-in-unreal-engine/)**
>
> With the Rewind Debugger you can record real-time segments of projects and preserve the data for debugging workflows.

Gameplay Debugger

> **[Gameplay Debugger](https://docs.unrealengine.com/5.3/en-US/using-the-gameplay-debugger-in-unreal-engine/)**
>
> Tool that enables analyzing realtime gameplay data at runtime.

For Gameplay Debugger, perhaps there is a better link, as this document is probably out of date.

---

<div class="post-metadata">

**Author:** ![Skylonxe](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Skylonxe](https://forums.unrealengine.com/u/Skylonxe)\
**Post date:** [December 11, 2023, 9:56am UTC](https://forums.unrealengine.com/t/tutorial-advanced-debugging-in-unreal-engine/1334431/8 "2023-12-11T09:56:20Z")

</div>

I would also suggest looking into sampling profilers. You don’t need any tracing macros, it just works. Where Unreal Insights has mysterious empty blocks, Superluminal will show you precisely what is happening down to the OS level function calls. As a bonus, Unreal can also redirect instrumentation into superluminal if you pass -superluminal on startup. You will be then able to see both sampled and instrumented data.

Although it is primarily focused on profiling, it can help also with debugging. You can very quickly understand what is going on, how the initialization is ordered, what is happening during your loading times.

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/1/c/a/1ca708298fcc50ef3dc598e74aea67445d93e8bf.png)

Also, you can run console commands on the server if you use console command ServerExec “console command”.

---

<div class="post-metadata">

**Author:** ![Ari\_Epic](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/ari_epic/32/1225266_2.png) [@Ari\_Epic](https://forums.unrealengine.com/u/Ari_Epic)\
**Post date:** [December 13, 2023, 3:00pm UTC](https://forums.unrealengine.com/t/tutorial-advanced-debugging-in-unreal-engine/1334431/9 "2023-12-13T15:00:43Z")

</div>

I love Superluminal, I did NOT know that you could enable UE support for it with the `-superluminal` startup parameter, that’s amazing!

---

<div class="post-metadata">

**Author:** ![Online\_Learner\_qf3R1](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Online\_Learner\_qf3R1](https://forums.unrealengine.com/u/Online_Learner_qf3R1)\
**Post date:** [January 10, 2024, 9:56am UTC](https://forums.unrealengine.com/t/tutorial-advanced-debugging-in-unreal-engine/1334431/10 "2024-01-10T09:56:10Z")

</div>

How to learn GamePlay Debugger? have any learning resources?

---

<div class="post-metadata">

**Author:** ![onionmk2](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/onionmk2/32/883738_2.png) [@onionmk2](https://forums.unrealengine.com/u/onionmk2)\
**Post date:** [January 10, 2024, 3:37pm UTC](https://forums.unrealengine.com/t/tutorial-advanced-debugging-in-unreal-engine/1334431/11 "2024-01-10T15:37:08Z")

</div>

Perhaps all web articles describing GamePlayDebugger are out of date and did not work well, as far as I could find.

I instead used the following .h and .cpp source code of the engine as a reference for implementation.  
[https://github.com/EpicGames/UnrealEngine/tree/072300df18a94f18077ca20a14224b5d99fee872/Engine/Source/Runtime/AIModule/Public/GameplayDebugger](https://github.com/EpicGames/UnrealEngine/tree/072300df18a94f18077ca20a14224b5d99fee872/Engine/Source/Runtime/AIModule/Public/GameplayDebugger)  
[https://github.com/EpicGames/UnrealEngine/tree/072300df18a94f18077ca20a14224b5d99fee872/Engine/Source/Runtime/AIModule/Private/GameplayDebugger](https://github.com/EpicGames/UnrealEngine/tree/072300df18a94f18077ca20a14224b5d99fee872/Engine/Source/Runtime/AIModule/Private/GameplayDebugger)

Other than the above, the comments section of this URL may be helpful.  
[https://github.com/EpicGames/UnrealEngine/blob/072300df18a94f18077ca20a14224b5d99fee872/Engine/Source/Runtime/GameplayDebugger/Public/GameplayDebugger.h#L11](https://github.com/EpicGames/UnrealEngine/blob/072300df18a94f18077ca20a14224b5d99fee872/Engine/Source/Runtime/GameplayDebugger/Public/GameplayDebugger.h#L11)

---

<div class="post-metadata">

**Author:** ![JonathanArmstrong](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@JonathanArmstrong](https://forums.unrealengine.com/u/JonathanArmstrong)\
**Post date:** [January 12, 2024, 12:39am UTC](https://forums.unrealengine.com/t/tutorial-advanced-debugging-in-unreal-engine/1334431/12 "2024-01-12T00:39:12Z")

</div>

Thanks, this is very useful!

It seems that your FString conditional breakpoint expression actually has a typo (an extra closed parenthesis at the end).

Current:  
wcsstr((wchar\_t\*)MyFString.Data.AllocatorInstance.Data, L"Search substring"))

Fixed:  
wcsstr((wchar\_t\*)MyFString.Data.AllocatorInstance.Data, L"Search substring")

---

<div class="post-metadata">

**Author:** ![Ari\_Epic](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/ari_epic/32/1225266_2.png) [@Ari\_Epic](https://forums.unrealengine.com/u/Ari_Epic)\
**Post date:** [January 12, 2024, 11:53am UTC](https://forums.unrealengine.com/t/tutorial-advanced-debugging-in-unreal-engine/1334431/13 "2024-01-12T11:53:39Z")

</div>

Ah, thanks for spotting that!

---

<div class="post-metadata">

**Author:** ![jcastro0x](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/jcastro0x/32/885680_2.png) [@jcastro0x](https://forums.unrealengine.com/u/jcastro0x)\
**Post date:** [January 18, 2024, 9:18am UTC](https://forums.unrealengine.com/t/tutorial-advanced-debugging-in-unreal-engine/1334431/14 "2024-01-18T09:18:37Z")

</div>

Can anyone tell if it’s possible to use

> {,UnrealEditor-Core.dll}::PrintScriptCallstack()

in Jetbrains Rider? I haven’t been able to find the Immediate Window when using Rider for C++ (only in C#).

If it helps anyone, the alternative I found was to call the function from LLDB:

> call (void) PrintScriptCallstack()

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/c/2/d/c2d10575c7b178d6d4269de1314f3e0477020507.png)

---

<div class="post-metadata">

**Author:** ![FrostedSentry](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/frostedsentry/32/949808_2.png) [@FrostedSentry](https://forums.unrealengine.com/u/FrostedSentry)\
**Post date:** [January 18, 2024, 10:18pm UTC](https://forums.unrealengine.com/t/tutorial-advanced-debugging-in-unreal-engine/1334431/15 "2024-01-18T22:18:58Z")

</div>

Holy cow, what a treasure trove of information. Thanks!

---

<div class="post-metadata">

**Author:** ![AmrHamed](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/amrhamed/32/1172489_2.png) [@AmrHamed](https://forums.unrealengine.com/u/AmrHamed)\
**Post date:** [April 18, 2024, 5:09am UTC](https://forums.unrealengine.com/t/tutorial-advanced-debugging-in-unreal-engine/1334431/16 "2024-04-18T05:09:54Z")

</div>

these two helped me, since the docs seems to be outdated.

[From Unreal Community](https://unrealcommunity.wiki/extending-gameplay-debugger-lcudh8ot)  
[From Orfeasel](https://www.orfeasel.com/creating-custom-gameplay-debugger-categories/)

---

<div class="post-metadata">

**Author:** ![RonP](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@RonP](https://forums.unrealengine.com/u/RonP)\
**Post date:** [May 22, 2024, 5:51pm UTC](https://forums.unrealengine.com/t/tutorial-advanced-debugging-in-unreal-engine/1334431/17 "2024-05-22T17:51:45Z")

</div>

Great resource! Here are a few others:

GETALL : logs the property value for all instances of a class. Add “showdefaults” at the end to include class defaults as well

DISPLAYALL : display a property value for all instances of a class onscreen.

SET : set the property value for all instances of a class

(Take a look at the ManualAutoCompleteList under [/Script/EngineSettings.ConsoleSettings] in BaseEngine.ini for a pretty extensive list of handy console commands.)

Visual Studio:

- VS 2022 includes a new conditional breakpoint criteria: so that breakpoint A isn’t triggered until breakpoint B has been hit.
- Not sure when it was introduced, but you can now add breakpoints to groups, so that you can easily toggle all breakpoints in the group. Helpful for those cases when you’re fighting fires in several major systems at the same time, and don’t want to keep triggering breakpoints in code you’re not debugging at the moment, but also don’t want to toggle 14 breakpoints every time you switch between tasks.

---

<div class="post-metadata">

**Author:** ![AweiGames](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@AweiGames](https://forums.unrealengine.com/u/AweiGames)\
**Post date:** [June 2, 2024, 2:56pm UTC](https://forums.unrealengine.com/t/tutorial-advanced-debugging-in-unreal-engine/1334431/18 "2024-06-02T14:56:07Z")

</div>

![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/d/d/2/dd294b54a762812cae1bdd7760a5f967d0c126f9.png)  
why it says GPlayInEditorContextString is not specified ? I am on ue5.3

---

<div class="post-metadata">

**Author:** ![RVillani](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/rvillani/32/1194572_2.png) [@RVillani](https://forums.unrealengine.com/u/RVillani)\
**Post date:** [December 5, 2024, 7:26pm UTC](https://forums.unrealengine.com/t/tutorial-advanced-debugging-in-unreal-engine/1334431/19 "2024-12-05T19:26:57Z")

</div>

I’m not sure that’s the cause, but it seems you don’t have editor symbols for debugging. I say that because your call stack has a lot of `unknown` frames. Enable them for your engine installation then try again.

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/a/0/c/a0c1b61930a3133330d2a33df5b776a04b103a17.png)  
 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/9/c/6/9c6f70bd73788c072328a9e1d1a2609dc60a2f87.png)

---

<div class="post-metadata">

**Author:** ![RVillani](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/rvillani/32/1194572_2.png) [@RVillani](https://forums.unrealengine.com/u/RVillani)\
**Post date:** [April 16, 2025, 9:01pm UTC](https://forums.unrealengine.com/t/tutorial-advanced-debugging-in-unreal-engine/1334431/20 "2025-04-16T21:01:19Z")

</div>

Another reason `GPlayInEditorContextString` might not be evaluating correctly, is if you’re debugging other configurations than `Development`. The editor dlls change names for each configuration. To figure out the name, right click the callstack and enable it to display module names.

For `DebugGame`, for instance, you’d need

```auto
{,,UnrealEditor-Engine-DebugGame.dll}GPlayInEditorContextString

```

[Next page](https://forums.unrealengine.com/t/tutorial-advanced-debugging-in-unreal-engine/1334431.md?page=2)
