Home > Backend Development > PHP Tutorial > debug - PHP大家都常用哪些调试方法

debug - PHP大家都常用哪些调试方法

WBOY
Release: 2016-06-06 20:42:54
Original
970 people have browsed it

有哪些方便又实用的经验

回复内容:

有哪些方便又实用的经验

参见 php调试手册

直观的 用echo var_dump

标准严谨走 调式工具 比如xdebug.

xdebug xdebug_var_dump monolog,日志是最好的调试排错工具

var_dump

最实用的:

<code>error_reporting(E_ALL | E_STRICT);
ini_set('display_errors',true);
var_dump();
</code>
Copy after login
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