®Magento Tutorials

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

In Magento, you can enable debug mode and debug profiling by editing the “app/etc/env.php” file. Here are the steps to enable debug mode and debug profiling:

Log in to your server and navigate to the Magento root directory.

Open the “app/etc/env.php” file in a text editor.

Find the following line in the file:
‘MAGE_MODE’ => ‘production’,

Change ‘production’ to ‘developer’ to enable debug mode.

Find the following line in the file:
‘debug’ => array(
‘profiler’ => false,
),

Change ‘false’ to ‘true’ to enable debug profiling.

Save the file and exit the text editor.

Clear the cache by going to “System” > “Cache Management” and select “Flush Magento Cache” and “Flush Cache Storage”

Go to the frontend of your store and check if the debug mode and debug profiling are enabled.

Note: Enabling the debug mode and debug profiling can slow down your website and expose sensitive information, so it’s recommended to only use them in a development environment. You should disable them in a production environment.

It’s always good to take a backup of your database before making any changes and test the changes on a test environment before applying it to the live website.

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 →