J King
J King

Reputation: 4434

Breakpoints not hit when debug website project after update to VS 2015 Update 3

I have a web project (DNN module) that I am developing and I recently updated to Visual Studio Professional 2015 Update 3.

I am using IIS 10 on a windows 10 PC

When I try to F5 / Debug my app I get the following warning on any breakpoints:

the breakpoint will not currently be hit. no symbols have been loaded for this document

What I have tried to fix this:

I am at a total loss and really need help. I can not figure out why my breakpoints are not being hit, when I debug the site no errors are thrown and the site runs fine.

Other Attempts:

From this SO thread I tried:

From This SO Thread I tried:

From User suggestions:

Question

Can someone help me figure out why my break points are not being hit when debugging from visual studio.


EDIT # 1: Additional attempts

  1. When I debug my application and open the Debug -> Windows -> Modules window I do not see the name of my projects dll / pdb file in the list of Modules. I tried going to Debug -> Options -> Symbols and clicking the Load All Symbols button. I included a screen shot. My dll or project is named krisisShifts so the dll created in the obj/Debug folder is krisisShifts.dll and KrisisShifts.pdb etc. The blue mark on the image shows the dll is not listed in the loaded modules. Also I included the default attached process Visual studio is using to debug the site marked in Red.

enter image description here

  1. I also deleted the site and application pool from IIS and recreated them with different names, site displays fine, but no breakpoints hit

EDIT 2: Attach to process now works

Not sure what I did. I have been fighting with this all day and afer restarting the computer and visual studio numerous times I can now attach to process w3wp.exe and the breakpoints are hit.

However hitting F5 still does not work. The site loads but no breakpoints are hit and I can see that my projects .dll is not added to the debug modules list (but it is when I attach to process).

I feel like I am closer but still can not figure out why my project .dll is not loaded in the debug modules when hitting f5.

Upvotes: 6

Views: 1542

Answers (1)

NJH
NJH

Reputation: 388

Are you able to attach directly to the w3wp.exe process, and if so are your breakpoints hit then?

  1. Menu > Debug > "Attach to process..."
  2. Check "Show processes from all users"
  3. Look for a process named "w3wp.exe", with the username "IIS APPPOOL\{IIS site name}"
  4. Click "Attach"

Upvotes: 1

Related Questions