Commit 20d6cf6f by Scott Vivian

qa_debug function for quick and dirty variable output

parent a52cf400
......@@ -1473,6 +1473,16 @@
return $options[$name];
}
function qa_debug($var)
/*
Simple method to output a preformatted variable
*/
{
echo "\n" . '<pre style="padding: 10px; background-color: #eee; color: #444; font-size: 11px; text-align: left">';
echo $var === null ? 'NULL' : print_r($var, true);
echo '</pre>' . "\n";
}
// Event and process stage reporting
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment