title: Why is my {$IFDEF DEBUG} conditional not working in Delphi?
body: <p>I have the following code (IP addresses changed) in a Delphi 7 project.</p>
  
  <pre><code>const
  {$IFNDEF DEBUG}
      AUTHENTICATOR_DB_ADMIN_HOST = '123.456.789.12';
  {$ELSE}
      AUTHENTICATOR_DB_ADMIN_HOST = '127.0.0.1';
  {$ENDIF}
  </code></pre>
  
  <p>Under project options:</p>
  
  <ul>
  <li>In the "Directories/Conditionals" tab under the section marked "Conditionals", I have a single definition: "DEBUG".</li>
  <li>In the "Version Info" tab under the section marked "Module Attributes", I have ticked the checkbox labelled "Debug-build".</li>
  </ul>
  
  <p>In the above code example, the "DEBUG" symbol is not defined, so the IP address is set to <code>123.456.789.12</code> instead of <code>127.0.0.1</code>. <strong>What am I doing wrong?</strong></p>
  
  <p>This question is following on from <a href="https://stackoverflow.com/q/22339856/1420752">Does Delphi&#39;s conditional compilation allow the defined symbols to contain values?</a></p>