Log stuff from your PHP files to the DevTools/Firebug Console using JavaScript statements.