Geeks With Blogs

@dbutscher
  • dbutscher *sighs* One of the disadvantages of coordinating #c4c2011: You don't order enough Five Guys, you don't get no Five Guys :( about 1308 days ago
  • dbutscher Starbucks, we ask that you caffeinate and fuel our teams for one more day of this fabulous geekend. #c4c2011 about 1309 days ago
  • dbutscher Dale Carnegie, of "How to win friends and influence people", is buried in Belton Cemetery. #c4c2011 is building a site for them this wknd about 1309 days ago
  • dbutscher Special shout out to Premier Tech for rockin d'Bronx pizza for lunch! Thank you! #c4c2011 about 1309 days ago
  • dbutscher Day 2 of #c4c2011 starting up... I already smell code cooking! Yum! about 1310 days ago
  • dbutscher #c4c2011 is wrapping up for the night. Can't say enough thanks to everyone who's participating. See you tomorrow! about 1310 days ago

News
Add to Technorati Favorites
Doug Butscher Nothin' but .NET!

I'm posting this blog mostly to remind myself how to fix this if ever I run into it again, but if anyone else benefits from it, then awesome.

In the Visual Studio IDE, when I set a breakpoint at a line of code, and start debugging, the breakpoint becomes that hollow maroon circle with a warning that says The breakpoint will not currently be hit. No symbols have been loaded for this document.

I've read a bunch of articles about makiing sure you're running in debug versus release mode, and making sure you deleted your obj AND bin folders. None of that worked for me. After some digging, and some help from John Alexander and Jeff Julian, I found one way that works for me.

  1. While debugging in Visual Studio, click on Debug > Windows > Modules. The IDE will dock a Modules window, showing all the modules that have been loaded for your project.
  2. Look for your project's DLL, and check the Symbol Status for it.
  3. If it says Symbols Loaded, then you're golden. If it says something like Cannot find or open the PDB file, right-click on your module, select Load Symbols, and browse to the path of your PDB.

I've found that it's sometimes necessary to

  • stop the debugger
  • close the IDE
  • close the hosting application
  • nuke the obj and bin folders
  • restart the IDE
  • rebuild the project
  • go through the Modules window again

Once you browse to the location of your PDB file, the Symbol Status should change to Symbols Loaded, and you should now be able to set and catch a breakpoint at your line in code.

I'm not really an expert on this, but I welcome any questions anyone may have, and I'll try to help out if you still can't get it to work.

Doug

Posted on Tuesday, June 26, 2007 9:57 AM | Back to top


Comments on this post: The breakpoint will not currently be hit. No symbols have been loaded for this document.

No comments posted yet.
Your comment:
 (will show your gravatar)
 


Copyright © Doug Butscher | Powered by: GeeksWithBlogs.net | Join free