murgatroid99
murgatroid99

Reputation: 20277

Breakpoint Problem in VS2008

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

Answers (4)

murgatroid99
murgatroid99

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

Max Markov
Max Markov

Reputation: 926

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.

Upvotes: 1

Baget
Baget

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

Darin Dimitrov
Darin Dimitrov

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

Related Questions