Magento 2 | Entering in debug mode

If we need to enter in debug mode, we have two ways:

– set debug mode from admin panel
– activate the errors logs and debug mode without access the “dashboard”

Set debug mode from admin panel

navigate to “Stores => Configuration ” scroll down to “Advanced => Developer”, open the “Debug” tab.

Switch ” Enabled Template Path Hints for Storefront ” to “yes” , save and flush the cache ( by navigate to system => Cache Management ).
Go to frontend end reload the page.

If all it’s right, you see something like this screen.

If you need to turn off the “debug mode” reverse the steps ( remember every time to flush the cache ).

Activate the errors logs and debug mode without access the “dashboard”

For activate the errors log and debug mode without access the “dashboard” open the “bootstrap.php” file that you find under ” Magento root -> app -> bootstrap.php ” and remove “#” on line 11

ini_set('display_errors', 1);

Reload page and you see the errors.

That’s all.