Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Project dlls are missing in Modules window

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:

  • Setting the project to debug mode
  • cleaning and rebuilding all
  • Editing the file and then reverting it to make sure it got rebuilt
  • Making sure the correct startup project in the solution properties
  • Making sure everything is built in debug mode in the solution properties
  • Making sure that the ASP.NET debugger is checked in the project properties
  • Making sure that the debug mode was set to full in the project properties
  • Disabling 'just my code' in the debugger settings
  • Restarting visual studios
  • Restarting my computer
  • Running Visual Studios as an Administrator
  • Checking out a fresh copy of the code from source control
  • Upgrading to Visual Studios 2013
  • Switching my browser to Internet Explorer
  • Making sure IIS is pointing to the right directory.
  • Clearing C:\Windows\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files\project\ and giving edit permissions to all users.

What sorts of things should I do to get the project.dll into the debugger modules?

like image 938
Holtorf Avatar asked Mar 04 '14 20:03

Holtorf


People also ask

How do I add a project to a DLL?

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.

How do I Debug a DLL in Windows?

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.


1 Answers

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...

like image 130
jjharrison Avatar answered Sep 17 '22 02:09

jjharrison