Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Implementation of dBug for Drupal.
Features
- PHP version of ColdFusion’s cfdump.
- Outputs colored and structured tabular variable information.
- Variable types supported are: Arrays, Classes/Objects, Database and XML Resources.
- Ability to force certain types of output. Example: You can force an object variable to be outputted as an array type variable.
- Stylesheet can be easily edited.
- Table cells can be expanded and collapsed.
The main modification is to return a render array instead of echo.
dBug page: https://github.com/ospinto/dBug
Usage:
$dbug_variable = Dbug::debug($variable);
$output['#attached']['library'][] = 'dbug/dbug';
$output['variable'] = [
'#type' => 'markup',
'#markup' => $dbug_variable,
];
Change the $variable for the variable you want to show the debug information.
Project information
- Minimally maintained
Maintainers monitor issues, but fast responses are not guaranteed. - Maintenance fixes only
Considered feature-complete by its maintainers. - Module categories: Developer Tools, Integrations
- 3,172 sites report using this module
- Created by yseki on , updated
- Stable releases for this project are covered by the security advisory policy.
Look for the shield icon below.
Releases
2.1.0
released 29 December 2023
Works with Drupal: ^9 || ^10
✓ Recommended by the project’s maintainer.
Drupal 10 compatibility
Install: