0

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.

4 Answers 4

1

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.

1
  • It is compiled in Debug mode, but how do I include the PDB symbols? Commented Jul 8, 2010 at 19:34
1

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.

1
  • I tried this with every module, then stopped and started debugging again, and the message still appears. Commented Jul 8, 2010 at 19:45
1

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.

0

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.

Not the answer you're looking for? Browse other questions tagged or ask your own question.