“The breakpoint will not currently be hit. No symbols have been loaded for this document.” - .pdb loaded from wrong place?

58,140

Solution 1

Turns out that I had set the configuration to Release when I started the debugger. When I change it to Debug, it works as expected!

Solution 2

IIS 7, Visual Studio 2012, Publishing to Local IIS and debugging from Visual Studio.

The problem arises because the web application is not able to pick up the PDB from the Temporary ASP.NET Folder

Before doing anything, Restart the app_pool for your web application in IIS

Solution 3

Another solution to the break point issue with a javascript file is to clear IE9 cache. I ran into this issue after updating/saving a js file. Visual Studio 2012's debugger will not update the .pdb until I went into Internet options and deleted the temporary internet files. Hope this will save someone some time.

Solution 4

Just a note on my problem with this, it's seems kind of silly in the end, but still I wasted about an hour in a panic.

I had to uninstall nuget in order to upgrade it. After installing the new nuget and the package that I was after I got the breakpoint error.

Turns out, that during those installations somehow, my publish settings lost the specific port that I was running the dev project on. Being that I was so used to that port number for the last 4 months, I didn't even think about it, but the whole time I thought I was looking at the dev machine, it was not actually running on that port, and I was looking at cached pages that were already up in my browser. DER!

Probably, sounds dumb, but if it helps someone.

Happy Coding, K

Solution 5

To solve this issue in VS 2015, I had to:

  1. Right click on the project, Properties -> Build
  2. Click on Advanced, which opens the Advanced Build Settings
  3. Set the Debug Info to "pdb-only" or "full"

The problem appeared when I messed up with the build configuration manager and added my own. Somehow, that changed the Debug Info setting in the project.

Share:
58,140
sl3dg3
Author by

sl3dg3

Updated on December 22, 2020

Comments

  • sl3dg3
    sl3dg3 over 3 years

    I had the famous “The breakpoint will not currently be hit. No symbols have been loaded for this document.” - problem and was inspired by this thread:

    I started the debugger, opened Debug -> Window -> Modules, right-click on the assembly -> Symbol Load Information. It points to a strange spot:

    C:\Windows\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files{myProjectFolder}\8df46672\bbaeb99e\assembly\dl3\c29c5e19\aa46dcf7_10dccc01{myProject}.pdb: Symbols loaded.`

    It fixed the problem for me temporarely when I deleted {myProjectFolder}. But it still points to this .pdb - file (VS recreates the temporary folder after deleting). I guess it should point to the .pdb in the bin-directory though, as it does in other assemblies. How am I supposed to fix this? Or is this a normal behaviour?

    Thx for any tipps...

    Edit: It is an ASP.NET - Project (.NET 4.0), MVC 3. No COM-libraries included so far. I have now deleted the above mentioned directory again, and ended up once again with “The breakpoint will not currently ...". If I open the Modules-window, Symbol Status shows "Skipped loading simbols." for all assemblies, except for App_global.asax.exot9a5x.dll.

    Edit 2: The website is configured to run on the local IIS 7. If I change to Visual Studio Development Server, debugging works fine. Seems to be related with IIS?