azure - 在 VS 2022 中远程调试 azure 函数的启动

标签 azure azure-functions visual-studio-2022 remote-debugging

我的函数应用程序中出现此错误在外部启动类中配置服务时出错。

我使用 this guide 成功启动了远程调试 session ,并且正在工作。 问题是每次我在门户中重新启动应用程序时,连接就会丢失,因此我无法在配置方法中达到所需的点。

有什么办法可以调试启动方法吗?

最佳答案

是的,您可以调试启动方法。通过使用 Azure Functions 中的快照调试器功能。

enter image description here

附加快照调试器。

enter image description here

将调试器保持在需要调试的位置。 根据您的要求添加条件,如下所示。

enter image description here

调试完成后,您将能够查看快照。

enter image description here

更多信息,请参阅Snapshot-debugger-function-app.

关于azure - 在 VS 2022 中远程调试 azure 函数的启动,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/76536203/

相关文章:

azure - 发布 .Net Core 3.1.4 项目 + VS 2022 + Azure 时无法配置 Microsoft Identity Platform

c# - 取消引用可能的空引用 C#

.net-6.0 - 如何激活 C# 10 功能 Visual Studio 2022

angular - `npm install` 命令在基本 Angular 应用程序的 azure 构建管道中失败

Azure Functions 触发器失败 : A listener for function was unable to start

javascript - Azure Durable Function (Node.JS) 错误 "Microsoft.Azure.WebJobs.Host: Can' t 将参数 'data' 绑定(bind)到类型 'System.String' 。”

Azure 函数队列触发器的 Azure 存储模拟器连接字符串

node.js - Azure Functions 的服务总线队列输出绑定(bind)不支持 'ScheduledEnqueueTimeUtc' ?

node.js - Jenkins 在 Azure 上部署 NodeJS 应用程序

c# - Azure Blob 存储 - 从 WebApi Controller 将 Http/StreamContent 上传到 CloudBlockBlob