Enabling the Debug Profiler in PrestaShop 1.5

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

  1. Login to the Cpanel 
  2. 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.
  3. 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.
  4. Editor used to activate the Debug Profiler.

    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.

     
  5. Scroll through the code until you find “define(‘_PS_DEBUG_PROFILING_’, false);“.  Change “false” to “true“.
  6. 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):

debug-profiler-in-action

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.

 

AC
Arnel Custodio Content Writer I

As a writer for InMotion Hosting, Arnel has always aimed to share helpful information and provide knowledge that will help solve problems and aid in achieving goals. He's also been active with WordPress local community groups and events since 2004.

More Articles by Arnel

Was this article helpful? Join the conversation!