There would be a really huge help for developers if we could implement an alternative for PHPs var_dump called dBug which replicates the formatting of Coldfusions CFDUMP tag. This facilitates in debugging and error logging far beyond what watchdog / var_dump currently do. Not to mention more readable.
dBug can be found here: http://dbug.ospinto.com/
Along with this, it would be great if certain error types could be HTML emailed to the developer when they happen, so the watchdog table doesn't have to grow so big after a week. We have a setup where any error event at all is grabbed and CFDUMPED along with the error and all variables, cgi, form, scope, session, client into an email and inserted into our company database. There it is organized by company and we can see errors as they happen, making us proactive in our work instead of reactive.
It would be nice if Drupal also had this feature, combining the two and emailing you the error in a readable format.
Comments
Comment #1
stevenpatzFeatures go in head.
Comment #2
kevinquillen commentedSorry, I wasn't sure where to put it. It could apply to any version, 5.x is just what we use.
Comment #3
kevinquillen commentedAnyone?
Comment #4
j.somers commentedHave you taken a look at the Devel module? It implements Krumo which is, as far as I can tell, something similar, at least to some level. Take a look at the screen shots and screen casts for more examples.
On the other hand I really doubt something like that would make it into core. It might be useful but it would have more success as a separate module than part of core.
Comment #5
kevinquillen commentedWhoa blast from the past. I see. Perhaps I shall write this module for Drupal 7. Does the hook_watchdog allow you to manipulate Drupal when an error happens, or is that only from within your own module?
Comment #6
j.somers commentedI am not entirely sure what you mean by
As a reference, the dblog module, which is part of Drupal, is an implementation of
hook_watchdog, these are the reports you see in Drupal. This is not related to what the Devel module does. When developing you can call on of the Devel module functions which combines thedrupal_set_messagefunction and an advancedvar_dumpcall.Comment #7
jody lynn