【问题标题】:Configuring NetBeans 7.1.2 with remote xdebug. Client: OSX 10.7 Remote: server 2003 SP2使用远程 xdebug 配置 NetBeans 7.1.2。客户端:OSX 10.7 远程:服务器 2003 SP2
【发布时间】:2012-05-30 09:12:20
【问题描述】:

正如标题所述,我的问题是我无法让 NetBeans 连接到远程调试会话。我的设置如下:

带有 netbeans 的客户端:
Mac OSX 10.7
Netbeans 7.1.2
防火墙禁用

带有 WAMP 的服务器:
WAMP 2.2 版
服务器 2003 SP2
防火墙已禁用

php.ini:
zend_extension = c:\wamp\bin\php\php5.3.10\ext\php_xdebug-2.2.0-5.3-vc9.dll

[xdebug]  
xdebug.remote_enable=1  
xdebug.remote_handler=dbgp  
xdebug.remote_connect_back=1  
xdebug.remote_port=9000  

当我查看 PHPInfo 时,它指出:
“该程序使用 Zend 脚本语言引擎:Zend Engine v2.3.0,版权所有 (c) 1998-2012 Zend Technologies with Xdebug v2.2.0,版权所有 (c) 2002-2012,Derick Rethans 拥有”

但我没有看到 xdebug 的其他条目。 (根据http://wiki.netbeans.org/HowToConfigureXDebug 我应该看到另一个xdebug 部分?)

当我运行“xdebug.org Tailored Installation Instructions”时,我得到:

量身定制的安装说明 总结
Xdebug 已安装:2.2.0
服务器 API:Apache 2.0 处理程序
Windows:是 - 编译器:MS VC9 - 架构:x86
Zend 服务器:没有
PHP 版本:5.3.10
Zend API 编号:220090626
PHP API 编号:20090626
调试版本:否
线程安全构建:是
配置文件路径:C:\WINDOWS
配置文件:C:\wamp\bin\apache\Apache2.2.21\bin\php.ini
扩展目录:c:\wamp\bin\php\php5.3.10\ext
您已经在运行最新的 Xdebug 版本
但是这里有说明

此时,欢迎提出任何建议。我不确定还能尝试什么。正如您从 phpini 中看到的那样,我启用了 xdebug.remote_connect_back - 我知道这可能是一个安全问题,但应该简化设置。我还运行了这里建议的 php 脚本:https://blogs.oracle.com/netbeansphp/entry/howto_check_xdebug_installation,它只是没有输出。

提前致谢,

詹姆斯。

【问题讨论】:

    标签: php netbeans xdebug remote-debugging netbeans-7


    【解决方案1】:

    清单:

    • 您是否重新启动(停止-等待-启动)您的 apache 服务器?

    • 你有没有把“运行配置”中的“项目URL”配置成执行php的页面?

    • 服务器的防火墙是否允许访问端口 9000?

    【讨论】:

      【解决方案2】:

      你绝对应该试试 Codebug http://codebugapp.com OSX 的 Xdebug 客户端

      【讨论】:

        猜你喜欢
        • 2013-07-13
        • 2011-08-06
        • 2014-11-03
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 2015-07-04
        • 1970-01-01
        • 1970-01-01
        相关资源
        最近更新 更多