Debug Tools

Component ID

1836434

Component name

Debug Tools

Component type

module

Maintenance status

Development status

Component security advisory coverage

not-covered

Component created

Component changed

Component body

A simple debug module for personal use.

Included functionaltity

Logging / Var dump

Three functions are available:
d(): This function just dumps anything you thrown 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
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.

Manual cron

Manual cron functionality for cron functionality testing, integrates nicely with admin_menu.