问题
I am trying to remote debug my net46 ASP.NET Core application in Azure. It appears the debugger attaches to the process just fine (WebApiNetCore.exe), however the breakpoints I've set are not being hit.
The available processes I have to choose from are here.
I've tried selecting all of these options and they don't seem to work either.
Is it currently possible to remote debug a net46 ASP.NET Core application?
回答1:
I have found a resolution to this issue.
Originally, if I select "Attach to Debugger" through Cloud Explorer, I get the following error:
So I tried the following steps to attaching a debugger manually:
- Download publish profile for my App from Cloud Explorer
- Make a note of the the username & userPWD
- In VS2015, Debug -> Attach to Process
- Select appropriate qualifier for the app(in my case it was internal.enowdev.com:4020)
- When entering credentials, will need to use the username & userPWD from user profile. Make sure to prefix the username with a ".\" to make the domain your local machine.
- Select the WebApi.exe Managed process.
- Symbols now load and debugger hits the breakpoints!
回答2:
I had the same issue with invalid username/password. It turned out that remote debugging was turned off for that web app from Application Settings in Azure portal.
来源:https://stackoverflow.com/questions/39983836/how-do-i-remote-debug-a-net46-asp-net-core-application-in-azure