How do you display the contents of an object that has private and protected properties - which means dpm($object) doesn't give you what you want?
You could do this:
dpm('<pre>' . print_r($object, TRUE) . '</pre>');
But that's a lot to type and you get a huge horrible list (particularly if it's a View object).
Try this instead:
Works a treat.
And while we're on the subject of dpm() have you tried this:
It can help.