简体   繁体   English

Visual Studio 2022 调试 Azure 应用服务

[英]Visual Studio 2022 Debug Azure App Service

I was following multiple articles to how to debug an azure app service on vs 2022. I learned that cloud explorer is deprecated in 2022 so I ran into this similar question and after I attach the debugger on the hosting section, I keep stumbling across one main issue.我关注了多篇关于如何在 vs 2022 上调试 azure 应用程序服务的文章。我了解到云资源管理器在 2022 年被弃用,所以我遇到了这个类似的问题,在我将调试器附加到托管部分之后,我一直在一个主要问题上绊倒问题。

The Visual Studio 2022 Remote Debugger (MSVSMON.EXE) does not appear to be running on the remote computer. Visual Studio 2022 远程调试器 (MSVSMON.EXE) 似乎没有在远程计算机上运行。 This may be because a firewall is preventing communication to the remote computer.这可能是因为防火墙阻止了与远程计算机的通信。 Please see Help for assistance on configuring remote debugging有关配置远程调试的帮助,请参阅帮助

I went to Windows Defender Firewall -> Allow an app or feature through Windows Defender Firewall and made sure that Visual Studio 2022 Remote Debugger was checked.我去了 Windows Defender Firewall -> 允许应用程序或功能通过 Windows Defender Firewall 并确保检查了 Visual Studio 2022 Remote Debugger。 I even went to the directory where my VS is installed and went to Common7/IDE/RemoteDebugger/x64/msvsmon.exe and clicked on it to start it which states我什至去了我的 VS 的安装目录并转到 Common7/IDE/RemoteDebugger/x64/msvsmon.exe 并单击它以启动它

Msvsmon started a new server named 'Home'. Msvsmon 启动了一个名为“Home”的新服务器。 Waiting for new connections.等待新的连接。

I then searched for Firewall & network protection -> advanced settings -> inbound rules and made sure that there was a green check mark on Visual Studio 2022 Remote Debugger.然后我搜索了防火墙和网络保护 -> 高级设置 -> 入站规则,并确保 Visual Studio 2022 远程调试器上有一个绿色复选标记。 I checked outbound rules and Visual Studio 2022 Remote Debugger is not on there, I saw that it was optional to add to outbound rules.我检查了出站规则并且 Visual Studio 2022 远程调试器不在那里,我看到添加到出站规则是可选的。 So after doing all of that and closing out VS and re-opening it and trying to attach debugger again, I still come across the same error that I got before I did all of the requirements.因此,在完成所有这些并关闭 VS 并重新打开它并再次尝试附加调试器之后,我仍然遇到了在完成所有要求之前遇到的相同错误。 I even turned off my firewall just to test it out and still got the same error message.我什至关闭了防火墙只是为了测试它,但仍然收到相同的错误消息。 Is there something that I am missing that is causing this error to still appear when I attempt to attach debugger?当我尝试附加调试器时,是否有一些我遗漏的东西导致此错误仍然出现?

I have tried to Debug the Application using VS 2022 with.Net 6.0.我尝试使用 VS 2022 和 .Net 6.0 调试应用程序。

The Visual Studio 2022 Remote Debugger (MSVSMON.EXE) does not appear to be running on the remote computer. Visual Studio 2022 远程调试器 (MSVSMON.EXE) 似乎没有在远程计算机上运行。 This may be because a firewall is preventing communication to the remote computer.这可能是因为防火墙阻止了与远程计算机的通信。 Please see Help for assistance on configuring remote debugging有关配置远程调试的帮助,请参阅帮助

  • I got the same issue when i try to debug using Attach to Process option in Debug menu.当我尝试使用“调试”菜单中的“附加到进程”选项进行调试时,我遇到了同样的问题。在此处输入图像描述

  • Place breakpoint in any of your form.在任何形式中放置断点。 As I am using the basic application,I have placed in Index.cshtml.cs.当我使用基本应用程序时,我已经放置在 Index.cshtml.cs 中。

在此处输入图像描述

  • Change the Configuration to Debug in Settings section and publish the Application to Azure.在设置部分将配置更改为调试,并将应用程序发布到 Azure。
  • In the Hosting Section click on the Attach Debugger.在主机部分单击附加调试器。在此处输入图像描述

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 Visual Studio 2022 发布 window 警告我有关 Azure 应用服务不支持 Win-x64 - Visual Studio 2022 Publish window warning me about Azure App Service not supporting Win-x64 Visual Studio 2022 和 .net Azure Function 应用程序的更新问题 - Visual Studio 2022 and .net update issues for Azure Function App 无法使用 Visual Studio 2022 中的 Timer Trigger 调试 Azure 函数 V4 - Not able to debug Azure function V4 with Timer Trigger from Visual studio 2022 如何在Visual Studio代码上本地运行/调试Azure云服务? - How to run/debug Azure Cloud Service locally on Visual Studio Code? Azure 函数应用程序未在 Visual Studio 调试中触发 TimerTrigger - Azure Function App Not triggering TimerTrigger in Visual Studio Debug 无法使用 Visual Studio Code 调试 Azure 逻辑应用工作流 - Not able to debug Azure Logic App workflow using Visual Studio Code 是否可以直接从Azure应用服务检索Visual Studio解决方案? - Is it possible to retrieve a Visual Studio solution directly from an Azure App Service? 从Visual Studio,无法发布到Azure App Service - From Visual Studio, unable to publish to Azure App Service 如何使用 Visual Studio 中的路径映射将调试器附加到 Azure 应用服务? - How to attach a debugger to Azure App Service with path mapping in Visual Studio? Visual Studio 在将应用服务发布到 Azure 的过程中停止 - Visual Studio stops in the middle of publishing app service to Azure
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM