DEV Community

thebernardlim
thebernardlim

Posted on

How to debug issues on Azure App Service?

Here are my main go-to ways to debug issues I face when using Azure App Services:

Application Insights

Enable Application Insights for your App Service for various insights to your app. (Note: There is a very minimal fee charge for this service)

The main one I usually use is the Failures section to view all failures and exceptions of the app.

Here you can look at all the failures that occur across your specified duration, and there is the ability to drill down to each failed request and the internal exception given.

Click on Application Insights, then on View Application Insights data

Application Insights

Click on Failures

Failures

Application Event Logs

Application event logs can be accessed via Diagnose and solve problems. The Application Event Logs is listed under *Diagnostic Tools *.

Diagnose and solve problems

In the Application Event Logs tab is a list of events that occurred. On click of each event, the detailed event description will be shown at the bottom.

Application Event Logs

Alternatively, this can also be accessed via Kudu if your preference is to download the full list in XML format. This can be accessed via Tools in the menu bar, and clicking on the Diagnostic dump option.

Kudu

The eventlog.xml file contains all the events that occured.

Event log XML

Happy debugging!

Top comments (1)

Collapse
 
leonardpuettmann profile image
Leonard Püttmann

Great! Using the App Service a lot at the moment so this is really helpful!