如何在Azure中远程调试net46 ASP.NET Core应用程序? [英] How do I remote debug a net46 ASP.NET Core application in Azure?

查看:107
本文介绍了如何在Azure中远程调试net46 ASP.NET Core应用程序?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试在Azure中远程调试我的net46 ASP.NET Core应用程序.看来调试器可以很好地附加到该进程(WebApiNetCore.exe),但是没有达到我设置的断点.

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.

当前是否可以远程调试net46 ASP.NET Core应用程序?

Is it currently possible to remote debug a net46 ASP.NET Core application?

推荐答案

我找到了解决此问题的方法.

I have found a resolution to this issue.

最初,如果我通过Cloud Explorer选择附加到调试器",则会出现以下错误:

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. 从Cloud Explorer下载我的应用程序的发布配置文件
  2. 记下用户名& userPWD
  3. 在VS2015中,调试->附加到进程
  4. 为应用选择合适的限定符(在我的情况下为internal.enowdev.com:4020)
  5. 输入凭据时,将需要使用用户名&用户个人资料中的userPWD.确保为用户名加上.\"前缀,以使域成为本地计算机.
  6. 选择WebApi.exe托管进程.
  7. 符号现在已加载,调试器达到了断点!

这篇关于如何在Azure中远程调试net46 ASP.NET Core应用程序?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆