How do I determine if my app was compiled as \"release\" instead of \"debug\"? I went to VS 2008 Project Properties > Build and set the configuration from Debug to Release b
For one in Web.config debug will be set to true, however you can actually set this in a release application too.
In debug however defines like DEBUG are set, so it's simple to do:
bool is_debug; #ifdef DEBUG is_debug = true; #else is_debug = false; #endif