How can I set 'UE_BUILD_DEBUG' as 1?

Hi, I want to compile codes inside
#if UE_BUILD_DEBUG
#endif

I build the project as ‘DebugGame Editor’ but,

#define UE_BUILD_DEBUG	0

in Engine\Source\Runtime\Core\Public\Misc\Build.h

I guess that code is made by UBT, but should I add UE_BUILD_DEBUG=1 in ProjectName.Target.cs ?
If it is, can I see the code snippet to make UE_BUILD_DEBUG = 1?
Sincerely Ryan.

1 Like