. Advertisement .
..3..
. Advertisement .
..4..
I get an error
The breakpoint will not currently be hit. No symbols have been loaded for this document
when trying to run C# desktop application but it’s not working. How to fix the warning: no symbols have been loaded for this document error? Please give me some advice.
Solution: To resolve the warning “The breakpoint will not currently be hit. No symbols have been loaded for this document”, you should follow this instruction:
Click
Debug > Break All
, thenDebug > Windows > Modules
. A list of all the assemblies loaded into the process will appear. Locate the one for which you require debug information. Choose Symbol Load Information from the context menu by right-clicking it. You’ll see a dialog box that displays all of the folders where the assembly’s.pdb
file was found. Compare that list to the actual.pdb
file location. Make certain it doesn’t look across an old edition.The assembly and its
.pdb
file should have been transferred by the IDE into the same location as your.exe
, that is your project’s binDebug folder in project. Inure you delete one from the GAC if you’ve been working with it.Verify that you are not in Release but Debug.
When in debug:
Try rebuilding your project first by right clicking on it > Rebuild. If this doesn’t work try a clean copy of the project (right click on the project > clean).
This is what you should do if that doesn’t work.
Step 7 creates the.pdb files. These are the debugging symbols.