FirePHP consists of two components. One is the Firefox extension that hooks into Firebug and the second is a library on the server that your code calls to send data to the extension.
All data is sent via a set of X-FirePHP-Data response headers. This means that the debugging data will not interfere with the content on your page. Thus FirePHP is ideally suited for AJAX development where clean JSON or XML responses are required.