views:

32

answers:

4

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.

+1  A: 

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.

Darin Dimitrov
It is compiled in Debug mode, but how do I include the PDB symbols?
murgatroid99
+1  A: 

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.

Baget
I tried this with every module, then stopped and started debugging again, and the message still appears.
murgatroid99
+1  A: 

Best way to check if PDB loaded:

  1. Pause execution in debugger using pause button;
  2. Open Debug windows Modules;
  3. select module you are interested in and check location from where it is loaded. If you have PDB file for this module you can load it;

Most common issue with ASP.NET modules are loaded not from your bin but from cache or some other folder.

Maksym Markov
A: 

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.

murgatroid99