FirePHP recommends a PHP debugging tool _ PHP Tutorial

Source: Internet
Author: User
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...

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.