Thursday, January 06, 2011

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

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.
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.
Look for your project's DLL, and check the Symbol Status for it.
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.

11 comments:

Anonymous said...

google pagerank seo list backlink service backlink building service

Anonymous said...

top [url=http://www.001casino.com/]online casinos[/url] hinder the latest [url=http://www.realcazinoz.com/]realcazinoz[/url] autonomous no set aside perk at the foremost [url=http://www.baywatchcasino.com/]bay anticipate casino
[/url].

Anonymous said...

I like what you guys are up too. This kind of clever work
and reporting! Keep up the amazing works guys I've added you guys to my blogroll.
Feel free to visit my web-site ; www.pro-poser.info

Anonymous said...

Do you have a spam problem on this site; I also am a blogger,
and I was wondering your situation; many of us
have developed some nice procedures and we are looking to
swap solutions with others, be sure to shoot me an e-mail if interested.
Review my web blog : halloween Costumes

Anonymous said...

Hi there very nice blog!! Guy .. Excellent .. Superb .
. I'll bookmark your web site and take the feeds also? I am glad to find numerous helpful information right here within the post, we want work out extra strategies in this regard, thanks for sharing. . . . . .
Here is my web blog - Mediawiki.Demos.tmweb.ru

Anonymous said...

Hi would you mind letting me know which webhost you're working with? I've loaded your blog in 3 completely different internet browsers and I must say this
blog loads a lot faster then most. Can you suggest a good hosting provider at
a honest price? Many thanks, I appreciate it!


My web page; shopping tools

Anonymous said...

Whats up this is kind of of off topic but I was wanting to know if blogs use
WYSIWYG editors or if you have to manually code with HTML.
I'm starting a blog soon but have no coding experience so I wanted to get guidance from someone with experience. Any help would be greatly appreciated!

Also visit my web blog :: coffee beans

Anonymous said...

I was pretty pleased to discover this website. I wanted to thank you for your time due to this fantastic read!! I definitely liked every little bit of it and I have you bookmarked to check out new stuff in your site.

[url=http://avmost.com]Free Porn Video[/url]

Anonymous said...

Howdy! I simply would like to offer you a big thumbs up for the excellent information you have got right here on this post. I will be returning to your website for more soon.

[url=http://xrumergeek.com]seo service[/url]

Anonymous said...

You are so awesome! I don't believe I have read through anything like that before. So wonderful to discover somebody with unique thoughts on this topic. Really.. thank you for starting this up. This website is something that is needed on the internet, someone with a little originality!

[url=http://truebluepokies4u.com]real money online pokies[/url]

Anonymous said...

For newest information you have to visit internet and on the web I found this website as a finest website for newest
updates.

My weblog: children clothing distributor