When developing stuff I need to output the state of some instance in order to inspect it.
While using CakePHP I always had a debug() function which does some kind of var_dump inside a <pre> html element, so the content is readable.
Is something similar in Symfony 2.x too?
var_dump
function. The strength of Symfony2 is to use the best tools in the PHP community, instead of re-inventing the wheel. – Glynis