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

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

In that page, there is the following sentence.](Build Configurations Reference | Unreal Engine Documentation) [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?

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

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:

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

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