Debugging the functions locally
The precompiled functions that run locally in Visual Studio 2017 provide the exact same debugging experience as any other .NET application including breakpoints, local variables, call stack, and more. The Visual Studio 2017 function tools also bring full IntelliSense and the ability to unit test the functions.
When running C# script-based functions, or other script language based functions online, the debugging experience may vary. Still, with C# script-based functions, it is possible to attach a Visual Studio debugger to a function deployed online.
In this section, we will focus on working with class-library-based precompiled functions in Visual Studio.
As mentioned in the introduction to this chapter, debugging, typically, starts with execution testing, which involves triggering the function under particular conditions. With Azure Functions, the execution testing approach is highly dependent on the function trigger type. Some functions are very easy to trigger...