Reputation: 7592
I have a dot net core app, and I use Debug -> attach to process on azure websites remote server:
I attach to dotnet.exe process, and I can see breakpoint is red, which means symbols are loaded and ready for debug.
Issue is when I hit the website, nothing happens in visual studio, so it doesn't hit the breakpoint for some reason. Is this correct way to attach to process to remotely debug net core app?
Upvotes: 3
Views: 1454
Reputation: 7592
Turns out you have to attach w3wp.exe AND dotnet.exe. Problem solved.
Upvotes: 6
Reputation: 20955
Have you published a Debug version of your Azure site? If you need to attach to the Azure website (called App) and step through your code, you have to do a publish with Debug
configuration so the PDBs are copied over.
Upvotes: 2