#if 0
// Normal path
#else
// Debug path
#endif
Only works with C and C++, though. #if 0
// Normal path
#else
// Debug path
#endif
Only works with C and C++, though.#if DEBUG
Console.WriteLine("This only compiles and runs in Debug mode.");
#else Console.WriteLine("This only compiles and runs in Release mode.");
#endif