What I have learned...
a) Set up a local dev environment with Komodo IDE and xdebug.
b) But in the mean time, I can do ...
$debugsomeStuff = print_r($someStuff,true);
and the stuff will show up in my error_log at the root of my application.