title: Set breakpoints in an ASP.NET Web Site Project
body: <p>I'm working on a <a href="http://msdn.microsoft.com/en-us/library/dd547590(v=vs.110).aspx" rel="nofollow noreferrer">Web <strong>Site</strong> Project</a> as opposed to a Web <strong>Application</strong> Project.  As such, there is no project file to build and produce a <code>.dll</code> library file or <code>.pdb</code> debugger symbols file.</p>
  
  <p>Right out of the box, if I create a brand new web site project, try to set a breakpoint anywhere, and  run with the debugger on, I get the following message:</p>
  
  <blockquote>
    <p>The breakpoint will not currently be hit. No symbols have been loaded for this document.</p>
  </blockquote>
  
  <p><img src="https://i.imgur.com/RUSBjx4.png" alt="Screenshot"></p>
  
  <p>I must be overlooking something simple, because there must be a way to debug an ASP.NET Web Site. Right?</p>
  
  <p><strong>Steps to reproduce</strong>:</p>
  
  <ol>
  <li>Open Visual Studio (confirmed in 2010 and 2008)</li>
  <li>Create New Web Site Project</li>
  <li>Select ASP.NET Web Site</li>
  <li>Add a Load Event handler to Default.aspx.vb</li>
  <li>Run with Debugger <kbd>F5</kbd></li>
  <li>This will prompt you to have <code>&lt;compilation debug="true" /&gt;</code> in your web.config if you don't already, select yes.</li>
  <li>Debugger symbols will not be loaded for the page because it is compiled on the fly</li>
  </ol>