Home  >  Article  >  Backend Development  >  php怎么调试

php怎么调试

WBOY
WBOYOriginal
2016-06-13 12:10:131034browse

php如何调试?
已经通过PhpStorm配置了Xdebug可以调试本地代码了,但是有状态的情况,比如:需要登录后才能调试的情况。这个情况不知道怎么调试,有谁可以指教下,谢谢!
------解决思路----------------------
在浏览器里运行调试不就行了,打开错误提示功能。要输出什么用var_dump/print_r/echo 输出就是了。
------解决思路----------------------
其实我觉得wamp server自带的debug功能蛮好用的
------解决思路----------------------
想实时的看到php变量确实不容易,我一般都是自己打log
------解决思路----------------------
可以 把需要 登录 的功能 先注释掉啊。

Statement:
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