dopetalk

Technology => SMF Forum Code Modifications => Topic started by: Chip on October 11, 2016, 04:56:01 PM

Title: Add 'Show Debug Information' setting to Server Settings
Post by: Chip on October 11, 2016, 04:56:01 PM
http://custom.simplemachines.org/mods/index.php?mod=1466

Adds a new "Show debug information" setting Server Settings that enables/disables SMF's query debugging features. When enabled, SMF displays debug information at the bottom of each page which includes the following information:Template files that were loaded
Sub-template files that were loaded
Language files that were loaded
Style sheets that were loaded
Number of files included (and which ones)
Cache hits (and what they were)
Queries used (including full details)

This information is very useful for debugging purposes. It's the same thing as adding the $db_show_debug=true line to your Settings.php file except that you don't have to keep manually editing your Settings.php to turn this feature on and off.

Configuration

The new setting appears on your Server Settings page: Admin -> Configuration -> Server Settings. Check to enable or uncheck to disable, then hit "Save." It's just that simple!

in dev only
SimplePortal 2.3.6 © 2008-2014, SimplePortal