Experimental project
This is a sandbox project, which contains experimental code for developer use only.
A simple debug module for personal use.
Included functionaltity
Logging / Var dump
Three functions are available:
d(): This function just dumps anything you throw into it into a logging file (currently sites/default/files/debug.log). The log file can easily be viewed using a console like program or the terminal, e.g. tail -f LOGFILE
dt(): Logs all given items together with time since last call from the same function context.
dm(): Logs the current memory usage.
dclass(): Logs the class name of the given argument.
dc(): Conditional logging. The first argument is the condition that must evaluate to true in order to log. All following arguments will be logged if the condition is met.
dk(): Log the keys of the given argument, expecting anything that can be cast into an array.
dquery($sql, $args): This function takes a complete drupal sql string and an array of arguments (just like db_query) and cleans it from additional {-brackets and replaces placeholders with actual values. The resulting string is ready to use in any database GUI.
dtrace(): Much like debug_backtrace(), but output goes to the log file.
Project information
Minimally maintained
Maintainers monitor issues, but fast responses are not guaranteed.Maintenance fixes only
Considered feature-complete by its maintainers.- Created by berliner on , updated
