How do I remote debug a net46 ASP.NET Core application in Azure?

孤人 提交于 2019-12-08 01:06:28

问题


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:

  1. Download publish profile for my App from Cloud Explorer
  2. Make a note of the the username & userPWD
  3. In VS2015, Debug -> Attach to Process
  4. Select appropriate qualifier for the app(in my case it was internal.enowdev.com:4020)
  5. 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.
  6. Select the WebApi.exe Managed process.
  7. 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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!