How to exclude debug code when shipping game
I would like to ask how can I exclude debug code like GEngine->AddOnScreenDebugMessage() during shipping. I use this kind of debug messages in my project, however I would like to be sure that these will not be displayed in shipped buiild. I prefer some macros because generated code will be cleaner and will not contain conditions and code that will never run.
asked Aug 11 '14 at 12:43 AM in C++ Programming
There a definition flags like UE_BUILD_SHIPPING or UE_BUILD_DEBUG, each build configuration has it. So:
Will build that code only on debug config build, or
Will compile this code on everything other then shipping build config
Follow this question
Once you sign in you will be able to subscribe for any updates here