Home > Backend Development > PHP Tutorial > 浅谈php错误提示及查错方法_php技巧

浅谈php错误提示及查错方法_php技巧

WBOY
Release: 2016-05-16 20:10:47
Original
1129 people have browsed it

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