If you havent heard of FirePHP please do yourself a huge service and go take a look at this PHP library/Firebug addon. By adding custom HTTP headers to your server responses, you can send traces from the server to the client without ever interrupting the body of the response. In the words of Greg Elliot, “Wow! Now it acts like an actual IDE!”. How right you are.
