Skip to main content
drupalreleases

Use direct release data with your AI assistant.

Learn more

Development Mode

Security covered Maintenance fixes only 303 sites

This module enables a development mode for Drupal sites, which disables caching and enables verbose error logging to streamline the development workflow. It automatically reverts your original settings when disabled.

Development mode makes it easy to enable developer friendly settings on your Drupal site, so you don't have to constantly clear the cache and/or hard-reload your browser.

Do not enable on production sites!

Enable this module and it will:

  • Disable twig caching.
  • Turn on twig debug/template suggestions.
  • Disable most Drupal caches.
  • Disable JS and CSS aggregation.
  • Disable browser level caching.
  • Turn on verbose error logging.

Disable this module and it will:

  • Restore your previous settings.

Install

Install with composer:

composer require --dev drupal/dev_mode

Enable with drush:

drush en dev_mode
  1. Enable module (like above) to activate development mode on your Drupal site.
  2. Module will attempt to include settings.dev_mode.php in your settings.php, if it's writeable. If not, you will need to add in manually. See below for example.
  3. Check logs after install to insure all went well.

Settings file

Module will attempt to write to settings.php, but if not writeable,
please add the following to the end of settings.php file:

/**
* Development mode settings.
*/
if (file_exists($app_root . '/modules/contrib/dev_mode/settings.dev_mode.php')) {
  include $app_root . '/modules/contrib/dev_mode/settings.dev_mode.php';
}

See more information about disabling caching here: https://www.drupal.org/node/2598914

Uninstall

Uninstall with drush:

drush pmu dev_mode
  1. Disable this module (like above) to de-activate development mode.
  2. Check logs after install to insure all went well.

Configuration

  • No user configuration options are available. Once the module is installed its active.
  • When the module is enabled, it remembers your performance and logging settings before changing them.
  • When the module is disabled, it will restore your settings.
Drupal 8–11

Ask your assistant about Development Mode

Check compatibility with your Drupal and PHP version, maintenance and security coverage, from current release data. How it works

Depends on

Dependencies of the latest stable release

No dependencies recorded for this project.

Required by

Tracked projects that depend on this one

No tracked projects depend on this one yet.

Activity

Tracked releases
1
Tracked since
Apr 2025
Latest release
1 year ago
Releases (12 mo)
0 ▼ from 1
Maintenance
Dormant

Releases

Version Type Core PHP Release date
8.x-2.7 Stable 8–11 Apr 24, 2025