Monday 27 November 2017

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

php - file_get_contents shows unexpected output while reading a file

I want to output an inline jpg image as a base64 encoded string, however when I do this : $contents = file_get_contents($filename); print &q...