Page 1 of 1

Enable Debug

Posted: 04 Mar 2010, 12:06
by Post Bot
Enable Debug
Written by Stoker and Jaymie1989

This is a simple guide on how to enable debug on your phpBB3 forum.
Enabling debug is a very nice tool that can be used to troubleshoot when installing mods.
It something goes wrong and there is errors in your files, debug will give us a hint on how to solve it.

Open config.php
Find:

Code: Select all

//@define('DEBUG', true);
Replace with:

Code: Select all

@define('DEBUG', true);
It will output something like this:

Code: Select all

Time : 0.115s | 17 Queries | GZIP : Off
Debug Extra
Find:

Code: Select all

//@define('DEBUG_EXTRA', true);
Replace with:

Code: Select all

@define('DEBUG_EXTRA', true);
Will output memory use and explanation where it is used:

Code: Select all

Time : 0.028s | 8 Queries | GZIP : On | Memory Usage: 2.25 MiB | Explain
Now debug is enabled and we are ready to troubleshoot.

Note! config.php is containing all the database info. Make sure you don't overwrite important info