I'm trying to debug an Azure Function locally. It's an EventHubTrigger.
The problem is that I need to debug the code locally because I still don't have the "real" settings.
My code currently looks like this:
public static class Notificator
{
[FunctionName("Notificator")]
public static async Task Run([EventHubTrigger("achievements")]UserAchivementNofication notification, ILogger log)
{
}
}
But when I try to debug it, I'm getting this error:
Microsoft.Azure.WebJobs.Host: Error indexing method 'Notificator.Run'. Microsoft.Azure.WebJobs.ServiceBus: No event hub receiver named achievements.
And it's normal, because it doesn't exist.
My local.settings.json is like this:
{
"IsEncrypted": false,
"Values": {
"AzureWebJobsStorage": "UseDevelopmentStorage=true",
"AzureWebJobsDashboard": "UseDevelopmentStorage=true"
}
}
How can I debug my code?