Reski's hobbies blog place…

This is not just about me, but also bout my family
May 13th, 2009 by ayah

Debug in Visual Studio

Ever wonder how to detect whether apps run at debug or release mode.

Here is the code

  1: #if DEBUG
  2: Console.WriteLine("Hi, I'm in Debug mode");
  3: #endif