Below are some tips to troubleshoot Azure Functions.
Tip #1. See HowTo: Monitor Azure functions.
Consider that the host.json file can be modified to control the logging behavior.
Tip #2. Use Azure Application Insights
For example, if you see an error in the monitor, you can use Application Insights to get the complete stack and detail of the error.
Tip #3. Get the generator trace.
You have to configure the Logging section of the generator. Note that the directory of the Azure function is read-only.
Also, you have to save the file in another directory of the structure, as shown in the following figure:
Check the Storage Account of the Azure Function under File Shares to see where to store the log file and to be able to download it.