July 15, 2014

Fixing “The breakpoint will not currently be hit. No symbols have been loaded for this document.”

If you use Visual Studio you have already seen this message at least one time: The breakpoint will not currently be hit. No symbols have been loaded for this document.” and your breakpont is white and never hit.

Here is the things you should try if you have this message:


  • Clean the solution:
    • Right click on the solution
    • Click on "Clean Solution"
  • Check the environment constants
    • Right click on the project
    • Click on "Properties"
    • Click on the "Build" tab
    • Check the box "Define DEBUG constant"
    • Check the box "Define TRACE constant"
    • Rebuild all

    • Select the "Debug info" to full
      • Right click on the project
      • Click on "Properties"
      • Click on the "Build" tab
      • Click on "Advanced" 
      • Select "full" in the dropdown "Debug info"
      • Rebuild all

    6 comments:

    1. still not working... any other solution?
      I am stuck on this since 4 days

      ReplyDelete
    2. You still have the alternative to decompile your code. You can use resharper pro for example. This will help you to debug. If you are stuck in a Sitecore pipeline. You can just decompile this/those classes in a separated dll just for the time of the debugging.
      After that without the solution, ... it is pretty hard to help you. But I agree that this didn't work at 100%. I had some cases in the past where this technique didn't work. Normally, you should be able to attach the breakpoints but sometimes you are not able see the varialbes values.

      ReplyDelete
    3. This has worked multiple times for me. Thanks for this!

      ReplyDelete
    4. It worked for me! Thanks a lot!

      ReplyDelete