Sco*_*ter 52 php eclipse xampp xdebug
我试图让xdebug使用eclipse(3.5)/ php(在xampp windows 7上).我已经验证xdebug已在php中启用 - 我有精美的输出,我的phpinfo显示所有xdebug的东西.我有远程调试,并在我的eclipse机器上输入了lan ip地址.
当我告诉eclipse进行调试时,它会启动浏览器并传递调试URL参数.看起来不错.
但是,在eclipse调试透视图中,它显示'启动myproject'57%'等待xdebug会话'.它永远坐在那里.
我已经关闭了两台机器上的Windows防火墙.
我尝试过隐式刷新.
有任何想法吗?
Gor*_*ran 62
我也有这个问题,我在php.ini文件中遗漏了这一行:
xdebug.remote_enable = On
Run Code Online (Sandbox Code Playgroud)
uic*_*ded 14
确保在以下位置使用ABSOLUTE路径定义了zend_extention php.ini:
例如: zend_extension=D:\SANDBOX\server\php\php_xdebug-2.1.0-5.3-vc6.dll
我在Windows上调试本地项目.到目前为止我不需要xdebug.remote_enable = On.
建议如果Xdebug会话没有启动(挂起率为57%),请确保:
zend_extention使用绝对路径设置指令并加载调试,用于phpinfo()检查netstat -an |find /i "listening"从命令行)如果您需要在以下位置设置其他端口php.ini:
xdebug.remote_enable = on
xdebug.remote_port = XXXX
Run Code Online (Sandbox Code Playgroud)
并更正Eclipse中的Xdebug设置:

小智 9
我遇到了同样的问题,我通过将端口更改为XDebug(现在使用端口9001)来修复它.
这是我的php.ini内容:
zend_extension ="C:\...\EasyPHP-5.3.3\php\ext\php_xdebug-2.dll"
xdebug.remote_enable=1
xdebug.remote_host=localhost
xdebug.remote_port=9001
xdebug.remote_handler=dbgp
xdebug.profiler_enable=0
xdebug.remote_mode=req
xdebug.remote_autostart=0
Run Code Online (Sandbox Code Playgroud)
还要检查apache日志文件,确保没有以下警告消息:
PHP警告:Xdebug必须在第0行的Unknown中
作为Zend扩展加载
警告:Xdebug必须在第0行的Unknown中作为Zend扩展加载
如果你这样做,打开php.ini文件并用";"注释 这extension=php_xdebug-2.dll条线:
;extension=php_xmlrpc.dll
extension=php_xsl.dll
**;extension=php_xdebug-2.dll**
;/PHPExt
Run Code Online (Sandbox Code Playgroud)
小智 6
在争取了3个小时并在论坛上尝试每个解决方案之后,我发现简单的技巧是在php.ini中的 zend_extension中指定Xdebug dll的路径时删除引号.我在Windows Vista上使用XAMPP(PHP 5.3.6 + Apache 2.2)+ Eclipse Indigo + PDT + Xdebug 2.1.2.
以下是对我有用的确切配置 -
zend_extension=C:\xampp\php\ext\php_xdebug-2.1.2-5.3-vc6.dll
#Note that the path above is not in quotes
xdebug.remote_enable=true
xdebug.remote_host=localhost
xdebug.remote_port=9001
xdebug.remote_handler=dbgp
xdebug.profiler_enable=1
xdebug.profiler_output_dir=C:\xampp\tmp
Run Code Online (Sandbox Code Playgroud)
我使用了端口9001,以便在已经被其他程序使用的情况下不与9000发生冲突.确保这与Eclipse> Preferences> PHP> Debug> Xdebug中的端口匹配.另外,编辑php.ini后重启apache.
一旦我将它添加到php.ini,一切都像冰淇淋一样.
我和Zend Studio有同样的问题.我注意到xdebug会话没有正常启动.我把这个字符串传递给了url一次,从那时起它就运行了.
http://localhost/myalias/?XDEBUG_SESSION_START=ECLIPSE_DBGP&KEY=13750956767461
Run Code Online (Sandbox Code Playgroud)
我确定这是IDE中某处的配置问题.
| 归档时间: |
|
| 查看次数: |
37876 次 |
| 最近记录: |