Debugging PHP software engineers

Source: Internet
Author: User
Error message for debugging PHP programmers? Enable the error report in the php. ini file and set the error report level :? The purpose of the display_errors variable is obvious-it tells PHP whether an error is displayed. The default value is Off. However, to make the development process easier, set this value to the On: display_errorsOnerror_reporting variable's default value to E_ALL. This setting is used to debug PHP programmers.

Error message

?

Enable the error report in the php. ini file and set the error report level:

?

The purpose of the display_errors variable is obvious-it tells PHP whether an error is displayed. The default value isOff. However, to make the development process easier, set this valueOn:

display_errors = On

error_reportingThe default value of the variable isE_ALL. This setting displays all information from poor coding practices to harmless prompts to errors.E_ALLThe development process is a little too detailed, because it displays a prompt on the screen for some trivial matters (for example, the variable is not initialized), it will mess up the browser output. I only want to see errors and bad code practices, but do not want to see harmless prompts. Therefore, replace the following valueserror_reportingDefault value:

?

error_reporting = E_ALL & ~E_NOTICE

Restart Apache and set all the settings.

1 floor Mybeautiful 2012-05-30

Programmers cannot perform debugging.

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.