PHP program die debugging method to quickly solve errors_PHP tutorial

WBOY
Release: 2016-07-21 15:43:42
Original
904 people have browsed it

This is the way that experienced PHPers will use to solve the problem
1. Look at the error output, check the source code from the output item, and add debugging code in the context of the source code. The code can be the simplest
$debuglineno = __LINE__;
die($debuglineno);
2. Search Google or Baidu according to the error output

Wrong approach:
1. Ask your superior or colleague directly
2. Directly! Go to the forum to ask for help instead of checking it yourself first
3. Instead of analyzing the problem, complain

www.bkjia.comtruehttp: //www.bkjia.com/PHPjc/320689.htmlTechArticleThis is a slightly experienced phper will use the following methods to solve the problem 1. Look at the error output, and return from the output item Check the source code and add debugging code in the context of the source code. The code can be the simplest...
Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template