# Where to put -debug flag when building a game with Debug Editor?

**URL:** <https://forums.unrealengine.com/t/where-to-put-debug-flag-when-building-a-game-with-debug-editor/145177>\
**Category:** C++\
**Tags:** unreal-engine\
**Created:** [June 5, 2020, 2:16pm UTC](https://forums.unrealengine.com/t/where-to-put-debug-flag-when-building-a-game-with-debug-editor/145177 "2020-06-05T14:16:16Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![shapeare](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@shapeare](https://forums.unrealengine.com/u/shapeare)\
**Post date:** [June 5, 2020, 2:16pm UTC](https://forums.unrealengine.com/t/where-to-put-debug-flag-when-building-a-game-with-debug-editor/145177/1 "2020-06-05T14:16:16Z")

</div>

I am reading Build Configuration page here [[https://docs.unrealengine.com/en-US/...ons/index.html](https://docs.unrealengine.com/en-US/...ons/index.html)

In that page, there is the following sentence.]([Build Configurations Reference | Unreal Engine Documentation](https://docs.unrealengine.com/en-US/Programming/Development/BuildConfigurations/index.html)) [TABLE]

**Debug**  
This configuration contains symbols for debugging. This configuration builds both engine and game code in debug configuration. If you compile your project using the **Debug** configuration and want to open the project with the Unreal Editor, you must use the “-debug” flag in order to see your code changes reflected in your project.

Where should I put the -debug flag?

---

<div class="post-metadata">

**Author:** ![Mattlauk](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Mattlauk](https://forums.unrealengine.com/u/Mattlauk)\
**Post date:** [February 6, 2022, 7:30pm UTC](https://forums.unrealengine.com/t/where-to-put-debug-flag-when-building-a-game-with-debug-editor/145177/2 "2022-02-06T19:30:42Z")

</div>

I know it’s been almost 2 years but this info would be helpful.

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_b24a9716](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_b24a9716](https://forums.unrealengine.com/u/anonymous_user_b24a9716)\
**Post date:** [May 10, 2022, 5:52pm UTC](https://forums.unrealengine.com/t/where-to-put-debug-flag-when-building-a-game-with-debug-editor/145177/3 "2022-05-10T17:52:42Z")

</div>

Just figured this out! From the location of your UE4Editor.exe (mine is C:/UnrealEngine/Engine/Binaries/Win64), run the following command in cmd.exe / command prompt:

```auto
C:\UnrealEngine\Engine\Binaries\Win64>UE4Editor.exe -debug

```

Then choose the project that you used a “Debug” configuration, and open it.

---

<div class="post-metadata">

**Author:** ![Leroyyyy231](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Leroyyyy231](https://forums.unrealengine.com/u/Leroyyyy231)\
**Post date:** [April 26, 2023, 10:04pm UTC](https://forums.unrealengine.com/t/where-to-put-debug-flag-when-building-a-game-with-debug-editor/145177/4 "2023-04-26T22:04:53Z")

</div>

Alternatively you can put it in the “Command Arguments” of the project’s properties via Visual Studio. Then just hit the run button in Visual Studio.

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