title: CakePHP debug() isn't working but Debugger::dump() is fine
body: <p>Ever since PHP4 and Cake 1.3 I have been using <code>debug($data);</code> to debug things such as model output in CakePHP.</p>
  
  <p>However, since upgrading to PHP5.4, I have noticed that <code>debug($data)</code> doesn't always seem to work. For example, today I did a straightforward <code>$data = $this-&gt;Model-&gt;find('all');</code> and the contents of <code>debug($data);</code> appears to be empty. No error, just a reference in the HTML output to the fact that I called debug and the line number and then no debug output.</p>
  
  <p>However, if I run <code>Debugger::dump($data);</code> on the exact same find, it works find and I see the entire output.</p>
  
  <p>It seems to only be happening when <code>$data</code> has a significant amount of data (say, 100+ records), but I worked with datasets this size prior to PHP5.4 and there was never a problem and there are no errors, inline or in the apache/php logs indicating that there are any memory issues and I have debugging set to 3.</p>
  
  <p>Does anyone have any idea why this is? I can obviosly starting using <code>Debugger::dump($data);</code> easily but it's just a little extra to have to try out each time and I'd like to know why I can't just use <code>deubg();</code> anymore.</p>