Jump to content

Check if running in debug or packaged build?


photo

Recommended Posts

Posted (edited)

Is there a compile time filter for filtering out debug code?

For example in Unreal we had:

#if WITH_EDITOR
    DoDebugStuff();
#endif

to do debugging without any runtime cost on packaged builds. Is there something similar to check if the build is a shipped build vs debug?

 

Edited by trandana
Posted

Hi trandana,

We use NDEBUG (release, not debug) and DEBUG preprocessor definitions for this.

Best regards,
Alexander

×
×
  • Create New...