title: How to debug a Classic ASP app in VS 2012
body: <blockquote>
    <p><strong>Possible Duplicate:</strong><br>
    <a href="https://stackoverflow.com/questions/1138175/how-do-you-debug-classic-asp">How do you debug classic ASP?</a>  </p>
  </blockquote>
  
  
  
  <ul>
  <li>I've added a New Website in VS2012 and pointed it at a virtual directory I created in IIS.</li>
  <li>In IIS, I enabled server side debugging</li>
  <li>The port for this website in IIS is 5555</li>
  <li>In VS for the project properties, I have the start URL as localhost:5555, which runs my site</li>
  <li>No debuggers are enabled in the project properties (there isn't one for Classic ASP)</li>
  <li>I set a breakpoint in a file which is included at the bottom of default.asp</li>
  <li>I run with site without debugging (Ctrl-F5)</li>
  <li>Then I attach to the process (IE10)</li>
  <li>Then I refresh the home page (default.asp)</li>
  <li>The breakpoint is not hit</li>
  <li>How can I get the debugger to stop at my breakpoint so I can debug this page?</li>
  </ul>
  
  <p>This is pre-existing code. I'm just trying to get it working. No code critique is necessary, unless it's a bug that fixes the problem!</p>
  
  <p>I set the breakpoint near the top of the first code block in this javascript method, but it's never hit.</p>
  
  <pre><code>function declareLogos() {
      &lt;%   ' get logos
  
      SQL = "SELECT l.LogoFileName, p.SortOrder FROM InrixCustomerLogo l join InrixCustomerLogoPage p on l.LogoCode = p.LogoCode WHERE p.PageFileName = '" &amp; fn &amp; "' AND SortOrder &gt; 0 ORDER BY SortOrder"
      On Error Resume Next
      Set oLOGO = oConn.Execute(SQL)
      logoerror = Err.Number
      On Error Goto 0
      x = 1  ' array counter
  
      %&gt;
  
      &lt;% If NOT logoerror Then %&gt;
      &lt;% Do While NOT oLOGO.EOF %&gt;
      i[&lt;% =x %&gt;] = '&lt;% =oLOGO("LogoFileName") %&gt;';
      &lt;% oLOGO.MoveNext : x = x + 1 : Loop %&gt;
      &lt;% End If %&gt;
  
      imax = &lt;% =x-1 %&gt;;
      ilast = &lt;% =(((x-1)*4)/4) %&gt;;  // &lt;% =(((x-1)*4)/4) %&gt;   this is imax - 1 that is divisible by four
  }
  </code></pre>