Debugging in Drupal has never been easier
Debug Bar displays a debug bar in the browser with information from PHP using PHP Debug Bar.
No more var_dump() in your code!
Requirements
- Composer (in order to locally install PHP Debug Bar)
Installation
- Download the module as usual - don't enable it yet
- cd to the module directory
- Install PHP Debug Bar:
$ php composer.phar install
- Enable the module
The Debug Bar should now appear in the bottom area of the website.
Notice
Since this is still a sandbox project, download it with Git
$ git clone --branch master http://git.drupal.org/sandbox/jfhovinne/2132181.git debug_bar
Usage
Message log
In order to inspect a variable, log a message, etc, use debug_bar_add_message in your code.
global $user;
debug_bar_add_message($user);