PrestaShop includes several debugging options including one called Debug Profiler. Â This allows you to see everything that is running on the page and will also give performance data such as the time it take for data to load. Â The following article shows you how to enable the Debug Profiler within PrestaShop 1.5.
Â
Please make sure to create a backup before making the change to the Prestashop configuration file. This will allow you to return to a working point if needed.
How to Turn On the Debug Profiler in PrestaShop 1.5
- Login to the CpanelÂ
- Scroll down to the Files section and Click on Cpanel File Manager. Â Optionally, you can use FTP and edit the file with your favorite editor.
- In the File Manager (or FTP client), locate the files that make up your PrestaShop installation. Â Look in the folders of the installation for the CONFIG folder. Â Double-click on it to see its contents when you find it.
Find the DEFINES.INC.PHP file. Â Click on the file to highlight it, then click on the EDIT or CODE EDITOR icon at the top of the File Manager interface.
Â
- Scroll through the code until you find “define(‘_PS_DEBUG_PROFILING_’, false);“. Â Change “false” to “true“.
- Click on SAVE CHANGES in the top right hand corner of the editor.
Â
Login to the PrestaShop Administrator Dashboard or view the shop website (the front end) created by PrestaShop. Â When you scroll to the bottom of the screen you will see the data listed for all the code running on that page. Â You can see performance results as well as all the database queries. Â Here’s a screenshot showing an example of the output you may say (note that the sample is only a portion of the screenshot as it is a very LARGE list of data that is shown):
NOTE: Â Make sure that your store is not available to customers or only available for a minimum period when the debugging the data being show.
Â