Home > Programming > Debug in Visual Studio

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
Categories: Programming Tags:
  1. No comments yet.
  1. No trackbacks yet.