“The breakpoint will not currently be hit. No symbols have been loaded for this document.” - .pdb loaded from wrong place?
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!
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
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.