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

I got hit by this warning upon Debug-> Attach To Process. No matter what I did the breakpoints would not be hit. Then I figured out the issue. In my case, the problem happened because Visual Studio 2017 was not able to guess the correct version of .NET Framework used in the assembly. It was applying a default v4.5, v4.6 framework whereas my project was configured to use v3.5 (yes, its an old legacy LOB project). I fixed it by manually specifying the framework used like so:

Was like this (bad):

You see that highlighted part?. Hit on select and manually specify the framework like so(since mine was using v3.5 of .NET framework, I selected this. Your case might be different. So select accordingly):

Finally, it should look like this (since mine was using v3.5 of .NET framework, I selected this. Your case might be different. So select accordingly in previous step):

Then Hit Attach.

And viola, the error will be gone and breakpoints will be hot again.

 

Tek Shinobi
Author: Tek Shinobi

Hiya Ninjas, I am the ninja who invented the fire, wheel, science, technology and everything intelligent this humanity has ever experienced since its evolution from monkeys and germs. Actually, above is a partial list. I also was involved with the Big Bang that created this universe. What was it like before the Big Bang is so secret that if I tell you, I will have to turn you into a hobbit and force you to be my gardener. Okay. Sayonanra, Namaste Tek Shinobi




No Comments


You can leave the first : )



Leave a Reply

Your email address will not be published. Required fields are marked *