简体   繁体   English

如何使用Eclipse PDT调试PHP应用程序(xdebug和zend调试器)

[英]How to debug PHP application using Eclipse PDT (xdebug and zend debugger)

I'm working on one application. 我正在开发一个应用程序。

I am using Eclipse php Helios IDE for developing php application. 我正在使用Eclipse php Helios IDE开发php应用程序。

I wanted to know below things related to this IDE, so that i can implement PHP application instantly as well as very efficiently : 想知道下面与这个IDE相关的事情 ,这样我就可以立即实现PHP应用程序并且非常有效:

1) How to do remote debugging using Eclipse PHP Helios IDE 1)如何使用Eclipse PHP Helios IDE进行远程调试

2) What is the pros and cons of xdebug and zend debugger 2)xdebug和zend调试器的优缺点是什么?

3) Which debugger should we use from xdebug, zend debugger. 3)我们应该从xdebug,zend调试器使用哪个调试器。

4) Is there any other debugger available apart from above two mentioned. 4)除了上面提到的两个之外,还有其他可用的调试器吗?

Below links i refered for above mentioned debugger. 下面链接我提到上面提到的调试器。

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

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

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

I am not getting exact information in above URL's, as I mentioned specific query above those are needed. 我没有在上面的URL中获得确切的信息,因为我提到上面的具体查询是必要的。

Is anyone know any reference, please suggest me. 有人知道任何参考,请建议我。

Thanks !! 谢谢 !!

-Pravin -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; 我使用伽利略版本,而不是后来的Helios版本,但我怀疑它们在这方面非常相似......你的问题的答案将在书中填写相当合理的章节,所以相反我会指向你关于这些主题的一些优秀链接;

2) This article is a great post on the pro's and con's of each with Eclipse; 2)这篇文章是关于每个人与Eclipse的赞成和关系的一篇很棒的文章; Eclipse debugging with Xdebug and Zend Debugger comparison . Eclipse调试与Xdebug和Zend Debugger比较 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. 我个人总是使用xdebug,因为它有我喜欢的其他功能,因为我不使用Zend我对它可能提供的任何集成优势不感兴趣。

3 + 1) However, there's nothing to stop you installing both and switching between them using different "server setup" configurations inside Eclipse. 3 + 1)但是,没有什么能阻止你在Eclipse中使用不同的“服务器设置”配置来安装它们并在它们之间切换。 This post shows you how to set them up on different ports to allow this; 这篇文章向您展示了如何在不同的端口上设置它们以允许这个; Debugging PHP using Eclipse and PDT 使用Eclipse和PDT调试PHP

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. 如果你对漂亮的URL使用apache mod_rewrite(或类似的),那么你需要非常小心地确保规则仍然将调试参数作为URL中的GET值传递给一个小的catch(对于任一调试器)。 I'm not personally aware of any way around this (eg via cookies). 我个人并不知道这方面的任何方式(例如通过cookie)。

4) Not that I'm aware of under Eclipse. 4)不是我在Eclipse下意识到的。

Happy reading.... 快乐阅读....

Step by step Debug process using XDebug and Eclipse Helios . 使用XDebug和Eclipse Helios逐步调试过程。 Hope it helps. 希望能帮助到你。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM