How to enable debug mode in your PrestaShop site

Procédure

How to activate debug mode on your PrestaShop site

PrestaShop includes several settings that you can use to debug your store

Generally, these settings are intended for use by developers and should not be used on production sites. However, you can also use them in certain scenarios to help you resolve issues you may encounter, such as modules or themes.

How to activate Debug mode on your PrestaShop site

If you have a shared hosting plan of the Perso/Starter/Standard/Performance type:

  1. Log in to your customer area or connect to your site via FTP
  2. Use the file manager or your FTP client and edit the defines.inc.php file located in the config folder

If you have a shared hosting plan of the cPanel type:

  1. Log in to cPanel or connect to your site via FTP
  2. Use the cPanel file manager or your FTP client and edit the defines.inc.php file located in the config folder

If you have a shared hosting plan of the Plesk type:

  1. Log in to your Plesk or connect to your site via FTP
  2. Use the file manager or your FTP client and edit the defines.inc.php file located in the config folder

After opening the defines.inc.php  file to edit it, change the line define('_PS_MODE_DEV_', false); to define('_PS_MODE_DEV_', true); and save the file.

How to enable debug mode in your PrestaShop site

  • From version PrestaShop 1.7, you can do this via your store's administration panel.

To do this, log in to your PrestaShop administration panel, then from the "Advanced Parameters" menu (1) click on "Performance" (2)

How to enable debug mode in your PrestaShop site

  • Then click on the "YES" button located to the right of "Debug mode"

How to enable debug mode in your PrestaShop site

Conclusion:


You have learned how to activate Debug mode in your PrestaShop, Debug mode allows you to view important information such as errors that will help you fix your site's operation

help.lws.net/a/1480
Was this article helpful?

Yes

No

Read 9 445 times

Thank you! Feel free to ask questions about our documentation if you would like more information, and help us improve it.

Similar articles

A question about this article?

Ask the LWS team and the community. Answers are published after moderation.

Ask the LWS team and its community a question

GDPR: Controller: LWS-Ligne Web Services. Purpose: moderation and public publication of your question, possible notification of an answer. Legal basis: consent (Art. 6(1)(a) GDPR). Email retention: 90 days after notification, 12 months maximum without an answer. To exercise your rights, see the GDPR section of our Terms and Conditions.