如何在本地调试 Azure Function QueueTrigger

How to debug Azure Function QueueTrigger locally

我正在开发一个由 azure 存储队列触发的 azure 函数。对于HTTPTrigger,我们可以在本地调试,但我找不到在本地调试QueueTrigger 的方法。你们中的任何人都可以告诉我如何使用 QUEUETRIGGER 在我的本地框 运行 功能上实现调试。我在我的本地盒子上有一个存储资源管理器,但它写在 azure 云存储帐户上。

Can anyone of you tell me how can i acheieve debugging on my local box running function with QUEUETRIGGER . I am having a storage explorer on my local box but it writes on azure cloud storage account.

如果你想 test/debug 你的 Azure Functions 应用程序针对本地存储队列,而不使用 Azure 存储帐户,你可以安装 Microsoft Azure storage emulator 提供模拟 Azure 的本地环境用于开发的 Blob、队列和 Table 服务。目的。

编辑:

As my function was deployed on the Azure, so the message from the queue from getting consummated by the functions running on AZURE

您在 Azure 上的 WebJob 和本地使用来自同一存储帐户的消息,如果您只想触发本地 WebJob 功能,如您所说,您可以在 Azure 上禁用您的 WebJob。此外,正如我提到的,对于 testing/debuging 您的 Azure WebJob 在本地运行,您可以使用 Microsoft Azure 存储模拟器。