如何在ubuntu?terr中关联/使用PDT与eclipse? [英] how can i associate/use PDT with eclipse in ubuntu?terr

查看:184
本文介绍了如何在ubuntu?terr中关联/使用PDT与eclipse?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想使用PDT来调试PHP与eclipse。我使用ubuntu 9.04。
可以帮助我吗?请尽可能提供详细信息。

解决方案

考虑到这个线程这一个


你必须确保xdebug绝对加载在版本上您正在使用的php。

要执行此操作,请使用您正在使用的启动配置来尝试在调试模式下运行脚本,并将其更改为使用phpinfo.php运行脚本。

还有一个调试日志会很好。



添加:




  xdebug.remote_autostart = On 
xdebug.remote_log =c:\temp\xdebug.log




到您的php.ini。


然后您必须确保PDT期待端口9000上的 Xdebug 信息,
并保证您的本地默认PHP Web服务器是 http://127.0.0.1



例如,您可能会发现您的php.ini文件格式不正确,这足以阻止您从PDT调试PHP。


I want to use PDT to debug PHP with eclipse. I am using ubuntu 9.04. Can any one help me? please give details if possible.

解决方案

Considering this thread and this one:

You have to ensure that xdebug is definitely loaded on the version of php you are using.
To do this, use the launch configuration you are using to try to run your script in debug mode and change it to run a script with phpinfo.php in it.
Also a Debug log would be good.

Add:

 xdebug.remote_autostart=On
 xdebug.remote_log="c:\temp\xdebug.log"

to your php.ini.

Then you have to insure that PDT is expecting Xdebug information on port 9000, and have insured that your local Default PHP Web Server is http://127.0.0.1.

With the log, you might discover, for instance, that your php.ini files is not properly formatted, which could be enough to prevent you debugging PHP from PDT.

这篇关于如何在ubuntu?terr中关联/使用PDT与eclipse?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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