I am stuck for over an hour already trying to debug my ASP.NET Core MVC application. It is using Full .Net Framework 4.6.1
Debugging using IIS Express works like a charm, but when deploying the project to IIS, I am attaching Visual Studio Debugger to "w3wp" process, it attaches but I keep seeing my breakpoints not enabled due to lack of symbols.
I have tried quite a few combinations of attaching the debugger, updated visual studio (I am using VS 2017), but all without any luck.
I have tried both stackoverflow and MS docs, but nothing for debugging ASP.NET core targeting full .NEt framework.
The worst thing is that I had a similar issue a few weeks ago, but did not record how it was resolved.
Any idea on what I am doing wrong?
Update: Issue happens on Windows Server 2012 R2, but on Windows 10 debugging works as expected.
Okay, I think I understand what happened.
First of all, root causes:
Whew...
Now, troubleshooting that helped resolve the issue:
What was very confusing, is that Microsoft's documentation was always using w3wp and now dotnet processes as ones to attach to.
Do not get me wrong, the ability to attach to the process by the assembly name is awesome, I only wish it was clearly reflected in the documentation. Hopefully the folks will catch up soon :)
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