FirePHP recommends a PHP debugging tool. PHP debugging involves many methods. Today, we recommend FirePHP (www.firephp.org ). This tool is a firefox-based component. Firephp component installation address. PHP debugging has many methods. Today I recommend FirePHP (http://www.firephp.org /).
This tool is a firefox-based component. Firephp component installation address. Install this component before use. A FirePHP package needs to be down after completion ..
After downloading, you can see the following files in the package:
Let's write an example for testing. (You need to include fb.PhpFile) The code is as follows:
We are running in firefox. The result is as follows:
Here we can see the value of $ str.
Next we will introduce several common methods of FirePHP:
1,Fb ($ para)This method is used in the preceding example. Monitor the value of a variable. This method is equivalent to FB: log ($ para ).
2. FB: info ($ str); this method is similar to the fb () method. The difference is that the running result has a different flag in firefox. (SEE)
3. FB: warn ($ str); same as above.
4. FB: error ($ str); same as above.
5. FB: trace ($ str); this method is used to monitor the call stack of a variable. For example.
We can also use FB in the class. Example:
The running result is as follows:
In fb.Php, We can see that there are multiple methods, which will not be described here. The top five are commonly used. If you are interested, you can study and test other methods carefully.
Bytes. Today I recommend FirePHP (http://www.firephp.org /). This tool is a firefox-based component. Firephp component installation address. Use it...