# How can I get a debuggable version of my game to load in the editor?

**URL:** <https://forums.unrealengine.com/t/how-can-i-get-a-debuggable-version-of-my-game-to-load-in-the-editor/429322>\
**Category:** Debugging, Optimization, & Profiling\
**Tags:** Debugging, debug, unreal-engine, CPP, question\
**Created:** [July 13, 2018, 3:27am UTC](https://forums.unrealengine.com/t/how-can-i-get-a-debuggable-version-of-my-game-to-load-in-the-editor/429322 "2018-07-13T03:27:00Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![VolatileAgent](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@VolatileAgent](https://forums.unrealengine.com/u/VolatileAgent)\
**Post date:** [July 13, 2018, 3:27am UTC](https://forums.unrealengine.com/t/how-can-i-get-a-debuggable-version-of-my-game-to-load-in-the-editor/429322/1 "2018-07-13T03:27:00Z")

</div>

I am still struggling to figure out how to get debugging working with UE4 C++. I have tried running the editor with the -debug flag, but it doesn’t seem to change anything. When I use the editor to compile, the output seems to indicate it is creating a development build, and if I attach the debugger to the editor process and set a breakpoint, most my local variables are optimized out, making it difficult to step through the code and figure out what’s happening. I can set Visual Studio’s build configuration to Debug Game and build the game project, but the editor doesn’t load that version of the game project. Does the -debug switch actually do anything? What do I need to do to get a debuggable version of my game classes to work with the editor?

---

<div class="post-metadata">

**Author:** ![mightyenigma](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@mightyenigma](https://forums.unrealengine.com/u/mightyenigma)\
**Post date:** [July 13, 2018, 6:00am UTC](https://forums.unrealengine.com/t/how-can-i-get-a-debuggable-version-of-my-game-to-load-in-the-editor/429322/2 "2018-07-13T06:00:38Z")

</div>

When you install a version of the Editor via epic games launcher, there are additional options before installing that you can select, including adding debug symbols. I’m not sure if this will fix your problem but it’s an idea

---

<div class="post-metadata">

**Author:** ![VolatileAgent](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@VolatileAgent](https://forums.unrealengine.com/u/VolatileAgent)\
**Post date:** [July 13, 2018, 2:21pm UTC](https://forums.unrealengine.com/t/how-can-i-get-a-debuggable-version-of-my-game-to-load-in-the-editor/429322/3 "2018-07-13T14:21:27Z")

</div>

I think I checked those options when I installed, but it’s not engine symbols that are the problem – I just want to debug my own code.

---

<div class="post-metadata">

**Author:** ![VolatileAgent](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@VolatileAgent](https://forums.unrealengine.com/u/VolatileAgent)\
**Post date:** [July 27, 2018, 7:04pm UTC](https://forums.unrealengine.com/t/how-can-i-get-a-debuggable-version-of-my-game-to-load-in-the-editor/429322/4 "2018-07-27T19:04:47Z")

</div>

Still haven’t figured this out. What type of build are most people using for C++ projects? The only way I’ve found to debug some things is with very verbose logging, which is cumbersome compared to being able to step through the code.

---

<div class="post-metadata">

**Author:** ![VolatileAgent](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@VolatileAgent](https://forums.unrealengine.com/u/VolatileAgent)\
**Post date:** [July 29, 2018, 9:17pm UTC](https://forums.unrealengine.com/t/how-can-i-get-a-debuggable-version-of-my-game-to-load-in-the-editor/429322/5 "2018-07-29T21:17:48Z")

</div>

This was answered on the Unreal Engine Forums: the trick is to launch the editor from Visual Studio. Then you can use whichever build target you want, and the hot reload still works.

---

<div class="post-metadata">

**Author:** ![EloiseFranklin](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@EloiseFranklin](https://forums.unrealengine.com/u/EloiseFranklin)\
**Post date:** [April 7, 2020, 10:46am UTC](https://forums.unrealengine.com/t/how-can-i-get-a-debuggable-version-of-my-game-to-load-in-the-editor/429322/6 "2020-04-07T10:46:55Z")

</div>

You can download the free game mod version to install it. It has fixes for games. Should download in prestigious places like CHPLay, [HapMod.com](https://hapmod.com/), AppStore, …

---

<div class="post-metadata">

**Author:** ![EloiseFranklin](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@EloiseFranklin](https://forums.unrealengine.com/u/EloiseFranklin)\
**Post date:** [April 7, 2020, 10:47am UTC](https://forums.unrealengine.com/t/how-can-i-get-a-debuggable-version-of-my-game-to-load-in-the-editor/429322/7 "2020-04-07T10:47:24Z")

</div>

You can download the free game mod version to install it. It has fixes for games. Should download in prestigious places like CHPLay, [HapMod.com](https://hapmod.com/), AppStore, …
