User Tools

Site Tools


ru:debugging

This is an old revision of the document!


Отладка

Как включить режим отладки

Откройте файл gsconfig.php, который находится в корневом каталоге GetSimple. (Если вы обнаружили вместо gsconfig.php файл temp.gsconfig.php, переименуйте его в gsconfig.php и откройте для редактирования.)

Найдите строку #define('GSDEBUG', TRUE);.

Удалите знак # в начале строки (раскомментируйте строку).

Как отключить режим отладки

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.

Как узнать, включен ли режим отладки?

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

Когда следует использовать режим отладки?

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 Zegnat's post in the forum: http://get-simple.info/forum/topic/937/about-debug-mode/

ru/debugging.1379071257.txt.gz · Last modified: 2013/09/13 11:20 by vladislav