Wednesday, 24 February 2016

c# - How do I remedy the "The breakpoint will not currently be hit. No symbols have been loaded for this document." warning?

C# desktop application on express edition. Worked then didn't work 5 seconds later.




I tried the following.




  • Ensure debug configuration, debug flag, and full debug info are set on all assemblies.

  • Delete all bin and obj folders and all DLLs related to the project from my entire machine.

  • Recreate projects causing the problem from scratch.

  • Reboot.



I have two WinForms projects in the solution. One of them loads the debug info, one doesn't. They both refer to the assembly I'm trying to get debug info on in exactly the same way in the project file. Any ideas?







I want to add in here, mostly for myself when I come back to review this question, that symbols are not loaded until the assembly is loaded, and the assembly is not loaded until it is needed. If the breakpoint is in a library that is only used in one function in your main assembly, the symbols will not be loaded (and it will show the breakpoint as not being hit) until that function is called.

No comments:

Post a Comment

c++ - Does curly brackets matter for empty constructor?

Those brackets declare an empty, inline constructor. In that case, with them, the constructor does exist, it merely does nothing more than t...