google-code-export / firephp

Automatically exported from code.google.com/p/firephp
1 stars 0 forks source link

Group dumps #188

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
I would love to be able to group variable dumps. like so:

$firephp->group('test group');
$firephp->dump('var1', $var1);
$firephp->dump('var2', $var2);
$firephp->groupEnd();

I didn't see this working with firephp 0.7.1, firefox 10.0.2, firebug 1.9.1, 

Thanks for reading,
Max

Original issue reported on code.google.com by maximili...@gmail.com on 3 May 2012 at 8:15

GoogleCodeExporter commented 9 years ago
->dump() is deprecated/old. Try and use ->log() instead which should group them 
properly.

Original comment by christ...@christophdorn.com on 3 May 2012 at 2:51

GoogleCodeExporter commented 9 years ago
Yeah, using ->log() did the trick! Thanks Christoph :)

So, for anyone else, this is what my above example looks like now:

$firephp->group('test group');
$firephp->log($var1, 'var1');
$firephp->log($var2, 'var2');
$firephp->groupEnd();

Original comment by maximili...@gmail.com on 3 May 2012 at 3:08