Learn

The Debug Panel

As of v1.7.9, Statamic now has a _display_debug_panel setting. When set to true, every page will be appended with a panel of debug information about your installation of Statamic.

What It Shows

The panel currently displays four sections of information.

Page Render Time

This is the total amount of time it took Statamic to render the page, from the first line of the first file until right after the page is completely put together and is ready for display.

Values

This area displays all of the values avilable to render in your templates with the _debug variable.

Timing

This area lists the total amount of time Statamic spent dealing with each item in the list. Currently, Statamic measures content caching and file parsing.

Counts

This is a list of the number of times different things happen on a page render. You can see things like the number of files opened, the number of times the YAML parser was run, the number of plugins that were used, etc.

Notes

  • You can enable the debug panel with environment variables so that it’s only visible on your development setups
  • The debug panel will not work with HTML caching due to how both features work

This article was last updated on September 13th, 2016. Find an error? Please let us know!