Drupal is a registered trademark of Dries Buytaert
Protected Pages 3.0.0 Major update available for module protected_pages (3.0.0). Commerce Core 3.3.8 Minor update available for module commerce (3.3.8). Search API HTML Element Filter 1.0.7 Minor update available for module search_api_html_element_filter (1.0.7). Layout Builder Reorder 2.0.1 Minor update available for module layout_builder_reorder (2.0.1). Ban 1.1.0 Minor update available for module ban (1.1.0). Field Formatter Range 2.0.0 Major update available for module field_formatter_range (2.0.0). Field Formatter Range 8.x-1.8 Minor update available for module field_formatter_range (8.x-1.8). Varbase Media Header 9.2.1 Minor update available for module varbase_media_header (9.2.1). Search API Solr 4.3.11 Module search_api_solr updated after 14 months of inactivity (4.3.11). Provus Mega Menu Module provus_mega_menu crossed 1,000 active installs.

Development Mode

329 sites Security covered
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.

Activity

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

Releases

Version Type Release date
8.x-2.7 Stable Apr 24, 2025