使用Eclipse中的Zend Debugger调试Yii Web应用程序 [英] debugging a Yii web application using Zend Debugger in Eclipse
问题描述
例如,我是认为Controller文件将是我将选择执行调试的文件,但它表示无法找到该文件。我附上了一个屏幕截图的选项。
我已经使用了Firefox Zend Debugger扩展,而且效果很好。现在,我只想知道如何在Eclipse中执行相同的操作。
基本选项是:文件和URL
您是否使用Eclipse调试了其他应用程序?如果是这样,它不应该有很大的不同:
- 我通常会调试/,意味着我登录到应用程序,去哪里我需要,然后准备调试的场景(包括适当的断点)。接下来,我运行一个常规调试会话 - >在浏览器上打开一个新的选项卡。我忽略此选项卡,而是返回到我准备要调试的场景的选项卡,然后继续。
- 我通常使用标记/或/index.php作为调试入口点(或任何术语)。如果需要(我不认为我需要与Yii),我将配置一些告诉IDE的路径,/由HTDOCS转换/表示。再次,我不认为我需要使用Yii(但是到目前为止我已经和Yii进行了调试)。
- 我曾经在PDT(即Eclipse)调试Drupal时发布了一篇博文,和xDebug(它是Zend Debugger的替代方法,基本上是一样的)。你可能会发现它很有用:链接。
祝你好运!
I have Zend debugger running successfully in Eclipse but I don't understand how to debug a Yii project. I.e, I can debug a single page PHP script but I don't know what the configuration options are supposed to be for a Yii web application.
For example, I was thinking the Controller file would be the file I would select to actuall debug but it says the file can't be found. I've attached a screen shot of what the options are.
I've used the Firefox Zend Debugger extension and that works great. Now, I just want to know how to do the equivalent of that in Eclipse.
The basic options are: File and URL
Have you debugged other applications using Eclipse? If so, it shouldn't be much different:
- I'm usually debugging on /, meaning I login to the application, go wherever I need to, then prepare the debugged scenario (including breakpoints where appropriate). Next, I run a "general" debug session -> a new tab is opened on the browser. I ignore this tab and instead go back to the tab where I prepared the scenario I want to debug and continue there.
- I usually go with marking / or /index.php as the "debug entry point" (or whatever the term is). If needed (I don't think I needed to with Yii), I would have config some "paths" that tell the IDE that "/" is translated/represented by HTDOCS. Again, I don't think I needed to with Yii (but I debugged little with Yii thus far).
- I once had a blog post on debugging Drupal with PDT (which is Eclipse) and xDebug (which is an alternative to the Zend Debugger and essentially the same). You might find it useful: link.
Good luck!
这篇关于使用Eclipse中的Zend Debugger调试Yii Web应用程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!