Reputation: 20277
I have an ASP.NET web site project that I want to debug, but when I try to debug it Visual Studio gives the message "The breakpoint will not currently be hit. No symbols have been loaded for this document"
. Does anyone know of a solution to this that does not involve reinstalling everything.
Debug is enabled on those files.
Edit: manually loading symbols did not work.
Upvotes: 0
Views: 129
Reputation: 20277
I found a solution to my specific problem: The startup project was different from the project with the breakpoints, and when I set the startup project to that project the breakpoints worked again.
Upvotes: 0
Reputation: 926
Best way to check if PDB loaded:
Most common issue with ASP.NET modules are loaded not from your bin but from cache or some other folder.
Upvotes: 1
Reputation: 3346
You need make sure that you the .PDB files (symbols files) that was generate during the compile time. you can load the symbols manually if needed.
Upvotes: 1
Reputation: 1038790
Make sure that the assembly that contains the code you are trying to debug is compiled in Debug mode and that PDB symbols are included. Then rebuild the solution and try running again.
Upvotes: 1