maxArrayDepth not being applied

3 views
Skip to first unread message

Michi

unread,
Aug 19, 2011, 12:40:39 PM8/19/11
to DeveloperCompanion
I'm quite new to DeveloperCompanion and still struggle with the
options as they don't seem to be applied.
The code I'm using is:

require_once( $this->vars['server_root'] . 'libs/firePHP/FirePHP/
Init.php');
$fp_options = array(
'encoder.maxArrayDepth' => 10,
'encoder.maxDepth' => 10
);
$inspector = FirePHP::to('page');
$logger = $inspector->console();
$logger->options( $fp_options );

Arrays are still truncated a level 3 :-(

What am I doing wrong?
Thanks for any help,
Miguel

DeveloperCompanion Support

unread,
Aug 19, 2011, 2:12:33 PM8/19/11
to dev...@googlegroups.com
Try this:

$fp_options = array(
'encoder.maxArrayDepth' => 10,
'encoder.maxDepth' => 10
);

$inspector = FirePHP::to('page');
$logger = $inspector->console();

$logger = $logger->options( $fp_options );

$logger->log($var);

Notice this line:

$logger = $logger->options( $fp_options );

All non-logging calls to the Insight API create a modified context that should be subsequently assigned and used. It does not update the existing context. This allows for incrementally constructing finely tuned contexts that can be logged to.

Does that make sense now?

Christoph

Miguel

unread,
Aug 22, 2011, 5:10:07 AM8/22/11
to dev...@googlegroups.com
Hi Christoph,

Thanks very much... that was it. I had seen it in the docs but failed to put it correctly.

Miguel



DeveloperCompanion Support
August 19, 2011 20:12


Michi
August 19, 2011 18:40

I'm quite new to DeveloperCompanion and still struggle with the
options as they don't seem to be applied.
The code I'm using is:

require_once( $this->vars['server_root'] . 'libs/firePHP/FirePHP/
Init.php');
$fp_options = array(
'encoder.maxArrayDepth' => 10,
'encoder.maxDepth' => 10
);
$inspector = FirePHP::to('page');
$logger = $inspector->console();
Reply all
Reply to author
Forward
0 new messages