title: When #if DEBUG runs
body: <p>I have this code in my C# class.  </p>
  
  <pre><code>#if DEBUG
          private const string BASE_URL = "http://www.a.com/";
  #else
          private const string BASE_URL = "http://www.b.com//";
  #endif
  </code></pre>
  
  <p>What I wanted to ask is when does the </p>
  
  <pre><code>#if DEBUG
  </code></pre>
  
  <p>path in the code get executed?</p>
  
  <p>Does it get executed </p>
  
  <ol>
  <li>When I run up a debug session in Visual Studio?</li>
  <li>When I manually run the exe or dll in question from the debug folder?</li>
  <li>Any other circumstances I forgot to mention?</li>
  </ol>