Debugging + Production states (have states like this in config)

Created on 20 March 2017, over 7 years ago
Updated 4 June 2024, 3 months ago

Maybe this exists, however I haven't come across it. Is it possible to set Drupal to 'debug / development' mode, and then to 'production' mode?

It would be great if Drupal defaulted localhost to be debug / development mode, and defaulted hosted sites to be production (by default, as of course it's good to override this, i.e. running the localhost in production just before putting it on a staging server perhaps).

There are certain states that should occur when developing:

  1. The system shouldn't do any caching! I spend a lot of my time clearing the cache 'thanks drush', in my eyes this kills workflow. Also so many people's support problems are to do with the cache (it's Drupal's version of 'Have you turned it off and back on again?' ;-)
  2. CSS and JS aggregate settings should be unchecked in /admin/config/development/performance, so things are clearer
  3. PHP errors should show

OK, so a big 'etc' here. I think we could all agree on a useful debug / development list. Maybe when setting to production, there could also be tests, like testing file permissions are good.

Again, maybe this exists, however having an option to set which phase of the process we are in (debugging / development / staging server / production) would be great, if it was in config somewhere. It would have saved me lots of confusion.

I think this would make the learning curve easier for people, which I think is hugely important, as it will make life easier for people, which I think benefits us all.

Apologies if this has already been done, however I've only been using Drupal a few weeks, so I'm not fully up and running yet!

💬 Support request
Status

Fixed

Version

8.8 ⚰️

Component
Other 

Last updated about 7 hours ago

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024