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

烂漫一生 提交于 2019-12-06 09:26:19

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!

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.

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