$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
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();