Skip to main content
Drupal is a registered trademark of Dries Buytaert
Release: OpenID Connect / OAuth client 3.0.0-alpha9 New alpha version released for module openid_connect (3.0.0-alpha9). Release: Opensolr Search 4.5.0 Minor update available for module opensolr_search (4.5.0). Release: Timelinr 1.0.1 Minor update available for module timelinr (1.0.1). Usage Milestone: Simplify Module simplify crossed 10,000 active installs. Usage Milestone: Views Reference Filter Module entityreference_filter crossed 10,000 active installs. Usage Milestone: Dropdown Language Module dropdown_language crossed 10,000 active installs. Usage Milestone: Paragraphs Browser Module paragraphs_browser crossed 10,000 active installs. Usage Milestone: OpenAPI Module openapi crossed 10,000 active installs. Usage Milestone: Decoupled Router Module decoupled_router crossed 10,000 active installs. Module Revived: Entityqueue Buttons 1.1.2 Module entityqueue_buttons updated after 8 months of inactivity (1.1.2).

Development Mode

294 sites Security covered Drupal 8–11
View on drupal.org

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.

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 Release date
8.x-2.7 Stable 8–11 Apr 24, 2025