Debugging tools

Kermit
1 Posts
Mendocino Coast, California
Joined: Jan 2018
For those of you who have not used the Debug class methods, here is a brief tip about its use and value.

In any php script, you can use these methods:

Debug::console_log($var_list);

Debug::print_r($var_list);

The first method displays the desired variables in the browser console.  The later on the screen, nicely formatted.

Both are VERY useful tools when debugging a new file.  You can also get creative in formatting the output, but I'll leave this you you all.
0 | 0

You need to register or login before you can comment.