informTest( array( true, 'foo' => 42.23 ), $this ); } } class TestBar { public $publicAttribute; private $privateAttribute; public function __construct( $param, $anotherParam ) { $this->publicAttribute = $param; $this->protectedAttribute = $anotherParam; } public function informTest( $arrayParam, $object ) { // Issue log message with stacktrace ezcDebug::getInstance()->log( 'informTest() called.', ezcLog::NOTICE, array(), true ); } } // Example object structure. $foo = new TestFoo(); // Genrates a stack trace internally. $foo->makeTest(); // Print HTML output. echo ezcDebug::getInstance()->generateOutput(); ?>