https://github.com/backdrop-contrib/devel
Provides helper functions for Backdrop developers.
https://github.com/backdrop-contrib/devel
backdrop php
Last synced: 8 months ago
JSON representation
Provides helper functions for Backdrop developers.
- Host: GitHub
- URL: https://github.com/backdrop-contrib/devel
- Owner: backdrop-contrib
- License: gpl-2.0
- Created: 2014-07-20T15:09:57.000Z (almost 12 years ago)
- Default Branch: 1.x-1.x
- Last Pushed: 2024-05-14T06:33:10.000Z (about 2 years ago)
- Last Synced: 2025-02-05T11:59:13.425Z (over 1 year ago)
- Topics: backdrop, php
- Language: PHP
- Homepage: https://backdropcms.org/project/devel
- Size: 1.14 MB
- Stars: 10
- Watchers: 35
- Forks: 15
- Open Issues: 22
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
Awesome Lists containing this project
README
Developer Tools (devel)
=======================
This module contains helper functions for Backdrop developers. It provides a
wide array of tools for examining the functionality of your site, including:
- Displaying a list of all SQL queries executed per page.
- Integrating with XHProf to show what PHP was executed and identify slow calls.
- Executing arbitrary PHP.
- Switch between different users.
- Report memory usage at the bottom of each page.
- A mail-system class which redirects outbound email to files.
- Utility functions for dumping variables to the page or messages area.
Although the abilities of this module are restricted to a permission
('access development information'), it's a good idea not to have this module
enabled on production servers due to its exceedingly dangerous functionality.
The most common functions for dumping variables include:
- `dpr()`: Prints a variable using `print_r()` to the messages area.
- `dpm()`: Prints a variable using the krumo library to the messages area.
- `dvm()`: Prints a variable using `var_export()` to the messages area.
All of these functions will only show the messages to users that have the
'access development information' permission.
Included in this package is also:
- devel_node_access module which prints out the node_access records for a given node. Also offers hook_node_access_explain for all node access modules to implement. Handy.
- devel_generate.module which bulk creates nodes, users, comment, terms for development.
License
-------
This project is GPL v2 software. See the LICENSE.txt file in this directory for
complete text.
Maintainers
-----------
- Nate Haug (https://github.com/quicksketch/)
- Jen Lampton (https://github.com/jenlampton)
- Alan Mels (https://github.com/alanmels)
Originally written for Drupal by
- Moshe Weitzman (https://www.drupal.org/u/moshe-weitzman)
- Hans Salvisberg (https://www.drupal.org/u/salvis)
This module is seeking additional maintainers.