title: Pretty dump variable/object in Symfony 2.*?
body: <p>When developing stuff I need to output the state of some instance in order to inspect it.</p>
  
  <p>While using CakePHP I always had a debug() function which does some kind of var_dump inside a &lt;pre&gt; html element, so the content is readable.</p>
  
  <p>Is something similar in Symfony 2.x too?</p>