User Tools

Site Tools


debugging

This is an old revision of the document!


Debugging

Enabling debug mode

Open gsconfig.php, this file should be in the root of your GetSimple installation. (If you only have temp.gsconfig.php rename it to gsconfig.php and open that one.)

Search for this line: #define('GSDEBUG', TRUE);.

Remove the #-sign.

Disabling debug mode

Open gsconfig.php, this file should be in the root of your GetSimple installation. (If you only have temp.gsconfig.php rename it to gsconfig.php and open that one.)

Search for this line: define('GSDEBUG', TRUE);.

Add a #-sign in front of the line.

Note: Setting GSDEBUG to FALSE does not disable debug mode in GetSimple versions prior to 2.03.

How do I know if debug mode is enabled?

http://zegnat.net/getsimple/debugmode.png

When you are logged in to your admin panel it will display a small red notice in the top-right corner.

When should I enable debug mode?

If you want to see PHP errors displayed on the website you will need to enable debug mode. This would apply to you if you are working with PHP, for instance when developing a theme or plugin .

We also urge you to enable debug mode if you go looking for help on this forum. “White pages” or missing content can be signs of fatal PHP errors. It is easier to get to the bottom of a problem if you provide us with the error messages and those only show if debug mode is enabled.

Link to Zegnåt's post in the forum: http://get-simple.info/forum/topic/937/about-debug-mode/

debugging.1346294594.txt.gz · Last modified: 2013/04/19 14:53 (external edit)