Skip to content

Developer mode #2552

Sep 4, 2022 · 5 comments · 3 replies
Discussion options

You must be logged in to vote

Mage::setIsDeveloperMode(true); is now here:

magento-lts/app/Mage.php

Lines 27 to 32 in 926e005

if (!empty($_SERVER['MAGE_IS_DEVELOPER_MODE']) || !empty($_ENV['MAGE_IS_DEVELOPER_MODE'])) {
Mage::setIsDeveloperMode(true);
ini_set('display_errors', 1);
ini_set('error_prepend_string', '<pre>');
ini_set('error_append_string', '</pre>');
}

So now, we can enable/disable developer mode in server config, for example, we can disable in production server or enable it in staging server without modifying index.php.

Replies: 5 comments 3 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by elidrissidev
Comment options

You must be logged in to vote
2 replies
@addison74
Comment options

@elidrissidev
Comment options

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@addison74
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
6 participants