I prefer using XDebug for debugging PHP code. But sometimes there's a huge nesting in the project, which makes the application very slow. Then XDebug can become pain. So there's an alternative for inspecting the contents of objects:
It works for single objects and Doctrine collections and should prevent browser displaying issues you are having.