Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

The Breakpoint Will Not Currently Be Hit. No Symbols Have Been Loaded For This Document

I've Googled this particular problem, but cannot seem to find a working solution.

Symptoms: After adding a breakpoint in the codebehind for an aspx page in a web application project, the breakpoint displays in the margin as a hollowed out red circle with an exclamation point enclosed in a yellow triangle in the bottom right of the circle. When mousing over the breakpoint, the message "The breakpoint will not currently be hit. No symbols have been loaded for this document."

Note: I'm trying to hit the breakpoints by "attaching to [a] process", namely w3wp.exe, located on a remote computer.

Things I have tried.

  1. Recompiling other projects in the solution.
  2. Checking to make sure that the configuration for each of the projects and the website in the solution is set to "Debug" on "any pc".
  3. Closing the solution and restarting Visual Studio.
  4. Restarting IIS.
  5. Reattaching to the process (w3wp.exe).

I've been trying to hit the breakpoints using Internet Explorer version 9 and Mozilla FireFox version 4. In each case, the breakpoints are never hit.

Any ideas are welcome! Thanks!

Andrew

like image 682
Andrew Avatar asked Apr 26 '11 21:04

Andrew


4 Answers

If you have more than one solution in your project.

Right click on your solution --> Properties

Set as --> Startup Project

like image 143
Ranjith Kumar Nagiri Avatar answered Oct 23 '22 10:10

Ranjith Kumar Nagiri


Are you deploying your assemblies to the GAC? If not, copy the .pdb file along with the .dll file, placing both in the same bin directory. The debugger should pick up the symbols automatically.

like image 22
Kyle Trauberman Avatar answered Oct 23 '22 10:10

Kyle Trauberman


I run into the same problem and guess what? Just do it: At solution explorer, right click on Project -> Package/Publish Settings UNCHECK "Exclude generated debug symbols"...

Maybe it can't solve your specific problem but certainly it will save another people from suffering. I can't post a screenshot because I don't have 10 of reputation... :(

Like you guys I lost all day searching on google and stackoverflow and the problem was just that. I realized that when I saw the PDB file in the bin folder ready to be published becoming 0 bytes size when I clicked "publish"...

like image 23
Michel Vaz Ramos Avatar answered Oct 23 '22 11:10

Michel Vaz Ramos


This error produce by many reason, one solution is : its due to different framework version when you try to attach process. For more details, please visit: https://stackoverflow.com/a/13106908/1218422

like image 28
Bhaumik Patel Avatar answered Oct 23 '22 11:10

Bhaumik Patel