我正在尝试在本地调试Azure函数。这是一个事件触发器。
问题是我需要在本地调试代码,因为我仍然没有“真正”的设置。
我的代码当前如下所示:
public static class Notificator
{
[FunctionName("Notificator")]
public static async Task Run([EventHubTrigger("achievements")]UserAchivementNofication notification, ILogger log)
{
}
}
但是当我试着调试它时,我得到了一个错误:
Microsoft.Azure.WebJobs.Host:错误索引方法
接受者点名成就。
这很正常,因为它不存在。
我的local.settings.json如下:
{
"IsEncrypted": false,
"Values": {
"AzureWebJobsStorage": "UseDevelopmentStorage=true",
"AzureWebJobsDashboard": "UseDevelopmentStorage=true"
}
}
如何调试代码?
谢谢您!