PHP中都有哪几种查错方法?-PHP Tutorial-php.cn">
Home > Backend Development > PHP Tutorial > PHP中都有哪几种查错方法?

PHP中都有哪几种查错方法?

WBOY
Release: 2016-06-13 12:22:53
Original
869 people have browsed it

笔记:php有那几种错误提示和查错方法

php有哪几种错误提示

1.notice : 注意

2.waring : 警告

3.error : 错误

PHP中都有哪几种查错方法?

1、语法检查--php配置文件里,把错误显示选项都打开或者代码开始部分,加error_reporting(E_ALL)
2、逻辑检查--设置断点,在断点前写日志 error_logs($message);exit();
3、HTTP调试--用抓包工具或者firebugs工具跟踪代码运行的全过程

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