如何在本地调试Azure Function QueueTrigger [英] How to debug Azure Function QueueTrigger locally

查看:92
本文介绍了如何在本地调试Azure Function QueueTrigger的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在开发一种由天蓝色存储队列触发的天蓝色功能.对于HTTPTrigger,我们可以在本地调试,但无法找到在本地调试QueueTrigger的方法.谁能告诉我如何使用QUEUETRIGGER实现我的本地box运行功能的调试.我在本地机器上有一个存储浏览器,但它写在azure云存储帐户上.

I am developing an azure functions which will be triggered by the azure storage queue. For HTTPTrigger we can debug locally , but am not able to find the way to debug QueueTrigger locally . 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 .

推荐答案

你们中的任何人都可以告诉我如何使用QUEUETRIGGER实现我的本地box运行功能的调试.我在本地机器上有一个存储浏览器,但它写在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.

如果要在本地使用存储队列测试/调试Azure函数应用程序,而不使用Azure存储帐户,则可以安装

If you'd like to test/debug your Azure functions app against the storage queue locally, without using Azure storage account, you can install the Microsoft Azure storage emulator that provides a local environment that emulates the Azure Blob, Queue, and Table services for development. purposes.

由于我的功能已部署在Azure上,因此来自队列的消息不会被AZURE上运行的功能所完善

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.此外,正如我提到的,要在本地测试/调试Azure WebJob功能,可以使用Microsoft Azure存储模拟器.

Your WebJob on Azure and local consume message from same storage account, if you want only local WebJob function is triggered, as you said, you can disable your WebJob on Azure. Besides, as I mentioned, for testing/debuging your Azure WebJob functions locally, you can use Microsoft Azure storage emulator.

这篇关于如何在本地调试Azure Function QueueTrigger的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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