I'm working on a Web Site Project as opposed to a Web Application Project. As such, there is no project file to build and produce a .dll
library file or .pdb
debugger symbols file.
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:
The breakpoint will not currently be hit. No symbols have been loaded for this document.
I must be overlooking something simple, because there must be a way to debug an ASP.NET Web Site. Right?
Steps to reproduce:
- Open Visual Studio (confirmed in 2010 and 2008)
- Create New Web Site Project
- Select ASP.NET Web Site
- Add a Load Event handler to Default.aspx.vb
- Run with Debugger <kbd>F5</kbd>
- This will prompt you to have
<compilation debug="true" />
in your web.config if you don't already, select yes. - Debugger symbols will not be loaded for the page because it is compiled on the fly