You can conditionally compile a constant, somewhere in a source file.
///
#if DEBUG
public const bool IsDebug = true;
#else
public const bool IsDebug = false;
#endif
///
To compile for 'Release', choose 'Release' from the drop-down menu that
should contain the word 'Debug', on your main toolbar. The difference
between 'debug' and 'release' is simply a configuration thing... It's the
command-line options that are passed to the compiler. That is, in the
release build, you'll probably have debugging turned off, and optimisation
turned on.
Want to reply to this thread or ask your own question?
You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.