I made a bunch of changes to fix a bug where I could not build. One of those changes finally worked, but now I can't debug!
When I leave a breakpoint in my .cs file, the debugger says:
The breakpoint will not currently be hit. No symbols have been loaded for the document.
Following the advice of stackoverflow, I checked the modules tab (Debug->Windows->Modlues), to see the symbol load information. The problem is, there is no project.dll!
WebDev.WebHost.dll is there and the included system.dlls are there. I checked my coworker's machine and he has the project.dll, so something that I did broke the debugger.
Things suggested in other article I have tried include:
What sorts of things should I do to get the project.dll into the debugger modules?
On the menu bar, choose File > New > Project to open the New Project dialog box. In the left pane of the New Project dialog box, select Installed > Visual C++ > Windows Desktop. In the center pane, select Dynamic-Link Library (DLL). Enter MathLibrary in the Name box to specify a name for the project.
Debug from the DLL project Set breakpoints in the DLL project. Right-click the DLL project and choose Set as Startup Project. Make sure the Solutions Configuration field is set to Debug. Press F5, click the green Start arrow, or select Debug > Start Debugging.
May be a bit late to the party but thought I'd share my experience with the exact same problem...
I have a Asp.net Web MVC projcect that I had published to local IIS. After attempting to Attach my visual studio debugger to IIS process I was getting the same 'Breakpoint will not be hit' error, as well as having now project .dll file show in the Debug> Modules list.
My solution was a simple solution in the end but it turns out when I initially published the application to IIS local I had not selected the 'Debug configuration. Because of this I guess my visual studio debugger was never looking for the projects .dll file hence the reason not showing in the list.
I completely removed my app from my local IIS and re-published it using the Debug config rather than Release and it works...
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With