使用Eclipse中的Zend Debugger调试Yii Web应用程序 [英] debugging a Yii web application using Zend Debugger in Eclipse

查看:146
本文介绍了使用Eclipse中的Zend Debugger调试Yii Web应用程序的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有Zend调试器在Eclipse中成功运行,但我不明白如何调试Yii项目。也就是说,我可以调试单页PHP脚本,但是我不知道Yii Web应用程序的配置选项应该是什么。



例如,我是认为Controller文件将是我将选择执行调试的文件,但它表示无法找到该文件。我附上了一个屏幕截图的选项。



我已经使用了Firefox Zend Debugger扩展,而且效果很好。现在,我只想知道如何在Eclipse中执行相同的操作。



基本选项是:文件和URL

解决方案

您是否使用Eclipse调试了其他应用程序?如果是这样,它不应该有很大的不同:


  1. 我通常会调试/,意味着我登录到应用程序,去哪里我需要,然后准备调试的场景(包括适当的断点)。接下来,我运行一个常规调试会话 - >在浏览器上打开一个新的选项卡。我忽略此选项卡,而是返回到我准备要调试的场景的选项卡,然后继续。

  2. 我通常使用标记/或/index.php作为调试入口点(或任何术语)。如果需要(我不认为我需要与Yii),我将配置一些告诉IDE的路径,/由HTDOCS转换/表示。再次,我不认为我需要使用Yii(但是到目前为止我已经和Yii进行了调试)。

  3. 我曾经在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:

  1. 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.
  2. 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).
  3. 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屋!

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