PrestaShop Documentation, PrestaShop Tutorials

Prestashop how to enable debug mode and debug profiling from settings files

In PrestaShop, you can enable debug mode and debug profiling by editing the settings files. Here’s how:

Log in to your hosting account and navigate to the directory where PrestaShop is installed.

Open the “config/” file located in the root directory of your PrestaShop installation.

Find the following lines of code:


define(‘_PS_MODE_DEV_’, false);
define(‘_PS_DEBUG_PROFILING_’, false);

Change “false” to “true” for both lines to enable debug mode and debug profiling:


define(‘_PS_MODE_DEV_’, true);
define(‘_PS_DEBUG_PROFILING_’, true);

Save the changes to the file.

With these changes, you should be able to see more detailed error messages when things go wrong on your site, and also profiling data will be displayed in the footer of the page.


This is intended for development purposes, and it should be turned off on a live site.
It is also recommended to backup your site before making any changes.
Keep in mind that this process may affect the performance of your site, so make sure to check the site after the process and make any necessary adjustments.
It is also recommended to use this in combination with a debugging tool like xdebug to get more detailed information about the performance of your site.

The debugging mode can be useful in identifying issues with your site and troubleshooting them. Profiling can be useful to identify slow parts of your site and optimize its performance.

About zohaibk

We develop useful addons for #E-Commerce and #CRM software to provide extra features.#PrestaShop,#Magento,#SugarCRM,#Vtiger & #Android #apps
View all posts by zohaibk →