The Breakpoint Will Not Currently Be Hit. No Symbols Have Been Loaded for This Document in a Silverlight Application

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:

  1. Right mouse click your project
  2. Select Properties
  3. Select the Build tab
  4. Make sure Define DEBUG constant and Define TRACE constant are
    checked
  5. Click the Advanced button at the bottom of the Build tabpage
  6. Make sure that Debug Info: is set to Full
  7. Click OK and save changes
  8. 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:

Build options

Advanced settings of build:

Advanced build settings

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



Leave a reply



Submit