Home > php教程 > php手册 > 浅谈php错误提示及查错方法,浅谈php错误提示

浅谈php错误提示及查错方法,浅谈php错误提示

WBOY
Release: 2016-06-13 08:57:56
Original
907 people have browsed it

浅谈php错误提示及查错方法,浅谈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 Recommendations
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template