Awesome PHP debugging function
I still haven’t found a good free setup for debugging PHP but this is the next best thing. Jacob Rosenberg posted a copy of his yo() debugging function. We used it extensively when building http://video.yahoo.com and I can vouch for its awesomeness.
The Greatest PHP Debugging Function of All Time.
I did have one issue with it though, for whatever reason the install of PHP on my DreamHost account wasn’t ever able to pick up any vars if I used the yo() shortcut. I had to modify the shortcut so that it passed func_get_args() to the static function. Weird, and annoying that everything was now wrapped in a superfluous Array() but not the end of the world.
I’m happy to have yo() available to me again for what little PHP work I do these days. It makes me feel warm and safe.
February 2nd, 2010 Comments Off



