The Breakpoint will not currently be hit: No symbols have been loaded for this document
Make sure you are using Internet Explorer to debug your Silverlight app. Make sure you are using Internet Explorer as your default browser. If you are not debuggin in IE, the IDE will not recognise breakpoints.
How do I remedy The breakpoint will not currently be hit. No symbols have been loaded for this document. warning?
Start debugging, as soon as you've arrived at a breakpoint or used Debug > Break All
, use Debug > Windows > Modules
. You'll see a list of all the assemblies that are loaded into the process. Locate the one you want to get debug info for. Right-click it and select Symbol Load Information. You'll get a dialog that lists all the directories where it looked for the .pdb file for the assembly. Verify that list against the actual .pdb location. Make sure it doesn't find an old one.
In normal projects, the assembly and its .pdb file should always have been copied by the IDE into the same folder as your .exe, i.e. the bin\Debug folder of your project. Make sure you remove one from the GAC if you've been playing with it.
VS2015 The breakpoint will not currently be hit. No symbols have been loaded for this document
Fixing:
- Right mouse click your project
- Select Properties
- Select the Build tab
- Make sure Define DEBUG constant and Define TRACE constant are
checked - Click the Advanced button at the bottom of the Build tabpage
- Make sure that Debug Info: is set to Full
- Click OK and save changes
- Clean solution and rebuild the project
Link to source Fixing “The breakpoint will not currently be hit. No symbols have been loaded for this document.”.
(step 6 generates the .pdb files, these are the debugging symbols)
For more information see next screenshots. Build settings:
Advanced settings of build:
Checked for Microsoft Visual Studio Enterprise 2015 and Microsoft Visual Studio Professional 2017.
VS 2013 the breakpoint will not currently be hit. no symbols have been loaded for this document
You should build your project, if it is build be sure that you attach to right process ! If you are sure that this 2 are okay, clean the solution and rebuild again.
Related Topics
What Does Synchronizationcontext Do
Opening a Folder in Explorer and Selecting a File
Incorrect List Model Binding Indices When Using HTML Helpers
How to Convert an Object to a Byte Array in C#
How to Filter Directory.Enumeratefiles with Multiple Criteria
Why Do Bcl Collections Use Struct Enumerators, Not Classes
When Do We Need to Set Processstartinfo.Useshellexecute to True
Implicit VS Explicit Interface Implementation
Query an Xdocument for Elements by Name at Any Depth
Can't Connect to Localhost on SQL Server Express 2012/2016
How to Use CSS on an HTML.Actionlink in C#
Rowspan Does Not Work in Itextsharp
Closing Excel Application Process in C# After Data Access
How to Intercept All Key Events, Including Ctrl+Alt+Del and Ctrl+Tab