November 2008
Beginner
448 pages
12h 25m
English
The DebugHelper class isn’t exactly a powerful debugger, but its one
method lets you do something that’s often useful in development
mode—report an object’s contents:
debugThe debug method
takes an object as its argument. It then serializes the object
into YAML, and wraps the YAML output (and any errors) in pre tags so you can inspect it.
Read now
Unlock full access