Enable Debug in PrestaShop

To enable debug mode in Prestashop, edit the file

vi config/defines.inc.php

Find

define('_PS_MODE_DEV_', false);

Replace with

define('_PS_MODE_DEV_', true);

Enable debug mode only for your IP

Find

if (!defined('_PS_MODE_DEV_')) {
define('_PS_MODE_DEV_', false);
}

Add above.

if ($_SERVER['REMOTE_ADDR'] == '51.38.246.115') {
    define('_PS_MODE_DEV_', true);
}

51.38.246.115 – replace with your IP address.

Back to PrestaShop

Comments

Leave a Reply

Your email address will not be published. Required fields are marked *