你如何调试PHP脚本? [英] How do you debug PHP scripts?

查看:137
本文介绍了你如何调试PHP脚本?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何调试 PHP 脚本?

我知道使用错误报告等基本调试。 PHPEclipse 中的断点调试也非常有用。

I am aware of basic debugging such as using the Error Reporting. The breakpoint debugging in PHPEclipse is also quite useful.

什么是最好的 )调试phpStorm或任何其他IDE的方法?

What is the best (in terms of fast and easy) way to debug in phpStorm or any other IDE?

推荐答案

尝试 Eclipse PDT 来设置具有如上所述的调试功能的Eclipse环境。进入代码的能力是一个更好的方法来调试var_dump的旧方法,并在各个点打印以查看流程出错。当所有其他的失败,尽管我所有的都是SSH和vim我仍然 var_dump() / die()代码向南。

Try Eclipse PDT to setup an Eclipse environment that has debugging features like you mentioned. The ability to step into the code is a much better way to debug then the old method of var_dump and print at various points to see where your flow goes wrong. When all else fails though and all I have is SSH and vim I still var_dump()/die() to find where the code goes south.

这篇关于你如何调试PHP脚本?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆