sensei
sensei

Reputation: 7592

Remote debugging of net.core app doesn't work

I have a dot net core app, and I use Debug -> attach to process on azure websites remote server: enter image description here

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

Answers (2)

sensei
sensei

Reputation: 7592

Turns out you have to attach w3wp.exe AND dotnet.exe. Problem solved.

Upvotes: 6

Shiva
Shiva

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.

enter image description here

Source: MSDN / Remote debugging web apps

Upvotes: 2

Related Questions