I found this Firefox plug-in called FirePHP on friendfeed. It is an extension based on Firebug. It can be used to conveniently output PHP debugging information in the Firebug console without affecting the normal operation of the PHP program. In fact, this thing has been out for a long time, but I haven’t tried it before, but now it’s quite interesting to play with it for a while. Attached is a picture:
FirePHP consists of two parts
Firefox extension
PHP library
FirePHP’s PHP debugging information is identified by adding the X-FirePHP-Data information string in the http header and will not be directly output to the page, thus avoiding any impact on the normal output of PHP. The types of debugging information that can be output are as follows:
Normal debugging string, the types include LOG, INFO, WARN, ERROR
Array array
object
Exception
SQL returns data
http header
If you are using firefox 3 like me, you can click here to download and install FirePHP 0.1.0.1
This version is only suitable for php5. I will post a simplified version made by netizens on their own, but the function is much weaker, and the debugging information is output through js, which is not very practical.