Skip to content
For the complete documentation index, see llms.txt. This page is also available as Markdown.

Testing and Debugging

During the development of your Umbraco site you can debug and profile the code you have written to analyse and discover bottlenecks in your code.

To perform proper debugging on your site you need to set your application to have debug enabled. This can be done by setting Umbraco:CMS:Hosting:Debug="true" for example in the appsettings.json file:

{
  "Umbraco": {
    "CMS": {
      "Hosting": {
        "Debug": true
      }
    }
  }
}

Tracing

Tracing and trace logging are two names for the same technique. You need to configure which log messages you want to log.

Enabling Trace Logging

We recommend at least logging the following namespace at minimum (Verbose) level to enable valuable trace logging. Thereby you will have information about all endpoints that have been executed.

The logged messages can as always be monitored in the log viewer in backoffice

MiniProfiler

Umbraco includes the MiniProfiler, which profiles method calls and SQL queries to help you find performance issues. For more information, see the MiniProfiler article.

Umbraco Productivity Tool - Chrome Extension

If you are using the Google Chrome browser you can install this Umbraco Productivity Tool Chrome Extension.

This will allow you to quickly switch between debugging with the MiniProfiler, Trace viewer and normal mode.

Umbraco Productivity Tool

Logging

Learn how Umbraco writes log files and how you can write to them.

Last updated

Was this helpful?