I'm not sure how to get FirePHP to catch errors and warnings and report them in the Firebug console.
I've installed FirePHP and I'm pretty sure it is working—I see responses from these in the console:
fb('Log message', FirePHP::LOG);
fb('Info message', FirePHP::INFO);
fb('Warn message', FirePHP::WARN);
fb('Error message', FirePHP::ERROR);
I basically see "Log message," "Info message", "Warn message" and "Error message." I then changed my code to intentionally break it--IT gave this to me from their logs:
[21-Jan-2013 22:19:49] PHP Warning: Missing argument 3 for
echo_first_image(), called in
/app/web/xxx/wp-content/themes/xxx/home.php on
line 85 and defined in
/app/web/xxx/wp-content/themes/xxx/functions.php
on line 12
I'm trying to catch and print this in FirePHP but it is not being detected, and I'm not sure why. My full code block for initializing FirePHP:
<?php /* debug */
require_once("debug/FirePHP.class.php");
require_once('debug/fb.php');
$firephp = FirePHP::getInstance(true);
ob_start();
fb('Log message', FirePHP::LOG);
fb('Info message', FirePHP::INFO);
fb('Warn message', FirePHP::WARN);
fb('Error message', FirePHP::ERROR);
?>
An explanation or resource would be helpful. Thanks!