Erik, what you did is probably much better than what I'm using at the moment, and I'll take a look at your version soon. But for what it's worth, I'm using an extremely simple script to temporarily substitute for FirePHP (which I was using before). This isn't really my code; I just simplified/adapted it from someone else's posted elsewhere:
function phpToConsole( $data ) { ob_start(); $output = 'console.log(' . json_encode( $data ) . ');'; $output = sprintf( '<script>%s</script>', $output ); echo $output; } I call it (i.e. log something to the Console) simply like this: phpToConsole( "[PHP] My log message including $myVariable goes here." ); I keep the phpToConsole script in a separate file, and pull it in with a require_once in every other PHP file, but the script is so short it could simply be placed at the top of every file that needs it. Almost featureless, but it's dead simple and works for now. Lawrence -- You received this message because you are subscribed to the Google Groups "Firebug" group. To unsubscribe from this group and stop receiving emails from it, send an email to firebug+unsubscr...@googlegroups.com. To post to this group, send email to firebug@googlegroups.com. Visit this group at https://groups.google.com/group/firebug. To view this discussion on the web visit https://groups.google.com/d/msgid/firebug/CAMoMLKjn9-Rcfx5V1fTD2BOMOPToF07vufeJSYECv8Z0GJUt4w%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.