In a few places in our code we use #if DEBUG blocks to simplify development. Things like:
#if DEBUG
serverIP = localhost;
#else
serverIP = GetSetting()
#endif
or
private bool isLicensed()
#if DEBUG
return true;
#endif
return CheckSetting()
There are also a few places where we make cosmetic changes like this:
#if DEBUG
background = humorousImage.jpg
#else
background = standardColor
#endif
Is it dangerous to depend on #if debug to make development easier? If it is, what is a valid use of #if debug?