drupal/devel

Various blocks, pages, and functions for developers.

Installs: 104 676

Dependents: 241

Suggesters: 1

Security: 0

Type:drupal-module

4.1.5 2022-02-28 16:03 UTC

README

[[TOC]]

Introduction

Devel module contains helper functions and pages for Drupal developers and inquisitive admins:

  • A block and toolbar for quickly accessing devel pages
  • Debug functions for inspecting a variable such as dpm($variable)
  • Debug a SQL query dpq($query or print a backtrace ddebug_backtrace()
  • A block for masquerading as other users (useful for testing)
  • A mail-system class which redirects outbound email to files
  • Drush commands such as fn-hook, fn-event, token, uuid, and devel-services
  • Webprofiler. Adds a debug bar at bottom of all pages with tons of useful information like a query list, cache hit/miss data, memory profiling, page speed, php info, session info, etc.
  • Devel Generate. Bulk creates nodes, users, comment, taxonomy, media, menus for development. Has Drush integration.

This module is safe to use on a production site. Just be sure to only grant access development information permission to developers.

Collaboration

Local Development

  1. Clone devel git clone https://gitlab.com/drupalforks/devel.git (note - this is the shared fork, not the "spoon")
  2. cd devel
  3. Install the composer plugin from https://gitlab.com/drupalspoons/composer-plugin. Your source tree now looks like: Folder tree
  4. Configure a web server to serve devel's /web directory as docroot. Either of these works fine:
    1. vendor/bin/spoon runserver
    2. Setup Apache/Nginx/Other. A virtual host will work fine. Any domain name works.
  5. Configure a database server and a database.
  6. Install a testing site vendor/bin/spoon si -- --db-url=mysql://user:pass@localhost/db. Adjust as needed.

Testing

Version Compatibility

Devel versionDrupal corePHPDrush
4.x8.9+, 9, 107.2+9+
8.x-2.x8.x7.0+8+

Maintainers

See https://gitlab.com/groups/drupaladmins/devel/-/group_members. Note that the webprofiler module seeks a new co-maintainer.