title: How can I change my web.config to give <customErrors mode="Off" /> automatically when I debug
body: <p>In my Web.Debug.config I have this:</p>
  
  <pre><code>  &lt;system.web&gt;
      &lt;!--
        In the example below, the "Replace" transform will replace the entire 
        &lt;customErrors&gt; section of your Web.config file.
        Note that because there is only one customErrors section under the 
        &lt;system.web&gt; node, there is no need to use the "xdt:Locator" attribute.
  
        &lt;customErrors defaultRedirect="GenericError.htm"
          mode="RemoteOnly" xdt:Transform="Replace"&gt;
          &lt;error statusCode="500" redirect="InternalError.htm"/&gt;
        &lt;/customErrors&gt;
      --&gt;
    &lt;/system.web&gt;
  </code></pre>
  
  <p>How can I change this so that it changes the value in the config file to:</p>
  
  <p><code>&lt;customErrors mode="Off" /&gt; to &lt;system.web&gt;</code> in the web.config file</p>