我需要调试PHP。我最好的选择是什么? [英] I need to debug PHP. What is my best choice?

查看:94
本文介绍了我需要调试PHP。我最好的选择是什么?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在Linux环境(Debian)下的网站上工作。我不是Linux的专家,但我可以处理它,网站是使用PHP,MySQL,HTML等。

I'm working on a web site under a Linux environment (Debian). I'm not an expert at Linux but I can handle it, and the website is made using PHP, MySQL, HTML, etc.

事情是,我是在服务器端使用PHP。现在,为了测试,我在我的电脑上安装了Apache,所以我可以测试一切。但是,如果我可以调试PHP代码将是巨大的。到目前为止,我不需要它,但现在的代码越来越大,这是必须的。

The thing is, I'm using PHP for the server side. Right now, for testing, I installed Apache on my PC so I can test everything. But, it would be great if I could debug the PHP code. So far, I didn't need it, but now the code is getting larger, it's a must.

到目前为止,我正在使用vim,一切都很好,但是,在我的情况下如何调试PHP?我应该安装什么工具?他们是免费的吗?

So far, I'm using vim and everything is fine, but, how can I debug PHP in my case? What tools should I install? Are they free?

基本上,我需要知道在我的情况下最好的选择。

Basically, I need to know what would be the best choice in my situation.

推荐答案

XDebug提供了一步一步的调试,可以用于eclipse PDT,netbeans甚至vim。你真的应该试一试。还有Zend Debugger。

XDebug provides step-by-step debugging, and can be used with eclipse PDT, netbeans and even vim. You really should give it a try. There also is Zend Debugger.

这篇关于我需要调试PHP。我最好的选择是什么?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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