Debug PHP Software Engineer

Source: Internet
Author: User
Debugging PHP Programmers

Error message

?

Turn on error reporting and set the level of error reporting in the php.ini file:

?

The purpose of the display_errors variable is obvious-it tells PHP if it shows an error. The default value is Off . However, to make the development process easier, please set this value to On :

Display_errors = On

error_reportingThe default value of the variable is E_ALL . This setting shows all the information from bad coding practices to harmless prompts to errors. E_ALLIt's a bit too thin for the development process, because it shows hints on the screen for small things (such as uninitialized variables), which can mess up the browser's output. I just want to see errors and bad coding practices, but don't want to see harmless hints. Therefore, use the following values instead error_reporting of the default values:

?

error_reporting = E_all & ~e_notice

Restart Apache and it's all set up.

1/F mybeautiful 2012-05-30

Programmers are not able to debug.

  • 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.