Default Debug settings

It would be great to have options to enable Debug mode when creating a new website (option to enable it). Right now, new website wp-config.php has no WP_DEBUG set, and for the debug mode it would be useful to have this added when new site is created:

define(‘WP_DEBUG’, true);
define(‘WP_DEBUG_DISPLAY’, false);
define(‘WP_DEBUG_LOG’, true);
define(‘SAVEQUERIES’, true);
define(‘SCRIPT_DEBUG’, true);

Maybe even have the option in Local Sites settings for each site to enable/disable debug mode without making direct changes to wp-config.php. It is annoying to have to modify each new website every time to add these settings, when Local can control it much easier.

Hi @dev4press,

Thanks for the feedback! We’re looking into adding an easier way to enable (and further tweak) WP_DEBUG in Local.

In the meantime, have you tried creating a Blueprint? You can do so by right-clicking on the site you wish to turn into a Blueprint in Local and then going to “Save as Blueprint”

Once you do that, you can use the Blueprint when creating new sites and it’ll have the same exact files, database, and configuration.

The only drawback is that WordPress will get out of date with the Blueprint and you’ll need to update it.