如何使用Eclipse PDT调试PHP应用程序(xdebug和zend调试器) [英] How to debug PHP application using Eclipse PDT (xdebug and zend debugger)

查看:168
本文介绍了如何使用Eclipse PDT调试PHP应用程序(xdebug和zend调试器)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在处理一个应用程序。



我正在使用Eclipse php Helios IDE来开发php应用程序。



想知道与此IDE相关的以下内容,以便我可以立即实现PHP应用程序,并且非常有效:



1)如何使用Eclipse进行远程调试PHP Helios IDE



2)xdebug和zend调试器的优缺点是什么?

3)我们应该从xdebug,zend调试器使用哪个调试器。



4)除了上述两个之外,还有其他调试器可用。 >

以下链接以上调试器。



1) http://devzone.zend.com/article/2930-Debugging-PHP应用程序-with-xdebug



2) http://www.eclipse.org/pdt/documents/XDebugGuideForPDT2.0.pdf



3) http://www.xdebug.org/



我我没有得到上述URL的
中的确切信息,因为我提到了需要上述特定查询。



有人知道任何参考,请建议我。



谢谢!!



-Pravin

解决方案

我使用伽利略版本,而不是后来的Helios发行版,但我怀疑他们在这方面非常相似...
您的问题的答案将填补相当一本书中的合理篇章,所以我会指出一些关于这个主题的优秀链接:



2)这篇文章是一篇很好的文章,每个都有Eclipse; 使用Xdebug和Zend Debugger比较进行Eclipse调试。我个人总是使用xdebug,因为它具有我喜欢的其他功能,因为我不使用Zend我不会对它可能提供的任何集成优势感兴趣。



3 + 1)但是,没有什么可以阻止您在Eclipse中使用不同的服务器设置配置来安装它们并在它们之间切换。这个帖子显示如何在不同的端口上设置它们来允许这个; 使用Eclipse和PDT调试PHP



有一个小的catch(调试器),如果你使用apache mod_rewrite(或类似的)为漂亮的URL,你必须非常小心,以确保规则仍然将debug参数作为GET值传递给URL。我不是个人意识到这一点(例如通过cookies)。



4)不是我在Eclipse下知道的。



快乐阅读....


I'm working on one application.

I am using Eclipse php Helios IDE for developing php application.

I wanted to know below things related to this IDE, so that i can implement PHP application instantly as well as very efficiently :

1) How to do remote debugging using Eclipse PHP Helios IDE

2) What is the pros and cons of xdebug and zend debugger

3) Which debugger should we use from xdebug, zend debugger.

4) Is there any other debugger available apart from above two mentioned.

Below links i refered for above mentioned debugger.

1) http://devzone.zend.com/article/2930-Debugging-PHP-applications-with-xdebug

2) http://www.eclipse.org/pdt/documents/XDebugGuideForPDT2.0.pdf

3) http://www.xdebug.org/

I am not getting exact information in above URL's, as I mentioned specific query above those are needed.

Is anyone know any reference, please suggest me.

Thanks !!

-Pravin

解决方案

I use the Galileo release, rather than the later Helios release, but I suspect they're very similar in this regard... The answers to your questions would fill quite a reasonable chapter in a book, so instead I'll point you towards some excellent links on the topics;

2) This article is a great post on the pro's and con's of each with Eclipse; Eclipse debugging with Xdebug and Zend Debugger comparison. Personally I always use xdebug since it has additional features I like, and as I don't use Zend I am not interested in any integration benefits it may offer.

3 + 1) However, there's nothing to stop you installing both and switching between them using different "server setup" configurations inside Eclipse. This post shows you how to set them up on different ports to allow this; Debugging PHP using Eclipse and PDT

There is a small catch (to either debuggers) in that if you use apache mod_rewrite (or similar) for pretty URLs, you have to be really careful to ensure the rule still passes the debug parameter as a GET value in the URL. I'm not personally aware of any way around this (e.g. via cookies).

4) Not that I'm aware of under Eclipse.

Happy reading....

这篇关于如何使用Eclipse PDT调试PHP应用程序(xdebug和zend调试器)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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