xdebug-等待netbeans中的连接
我正在使用Netbeans调试PHP。我无法访问xdebug-等待netbeans中的连接,netbeans,port,xdebug,Netbeans,Port,Xdebug,我正在使用Netbeans调试PHP。我无法访问php.ini,因此我使用.htaccess: php_value xdebug.remote_host "localhost" php_value xdebug.idekey "netbeans-xdebug" php_flag xdebug.remote_autostart Off php_flag xdebug.remote_enable On php_
php.ini
,因此我使用.htaccess
:
php_value xdebug.remote_host "localhost"
php_value xdebug.idekey "netbeans-xdebug"
php_flag xdebug.remote_autostart Off
php_flag xdebug.remote_enable On
php_value xdebug.remote_port 9000
php_value xdebug.remote_handler dbgp
php_flag xdebug.profiler_enable on
php_flag xdebug.remote_connect_back On
php_flag xdebug.extended_info On
sub.mydomain.com
使用端口8080和8090运行。我以前在这台服务器上使用过xdebug和Eclipse
sub.mydomain.com
服务器的phpinfo()
列出了与上述设置一起安装的xdebug:
Zend Engine v2.3.0, Copyright (c) 1998-2011 Zend Technologies
with Xdebug v2.1.3, Copyright (c) 2002-2012, by Derick Rethans
在Netbeans中,我配置了“属性”和“运行配置”条目,并且端口和id也匹配(9000,Netbeans xdebug)
sub.mydomain.com
上有许多开发人员,如果有人使用端口9000,这可能是个问题吗
不过,如果我在Netbeans中运行“debug”,就会永远出现“等待连接”
我该怎么办
编辑:已修复为本地主机这是错误的:
php_value xdebug.remote_host "sub.mydomain.com"
xdebug.remote_主机设置需要包含包含IDE的计算机的IP。当然,这也意味着运行PHP/Xdebug的机器需要能够连接到该IP地址。这也记录在中,这是错误的:
php_value xdebug.remote_host "sub.mydomain.com"
xdebug.remote_主机设置需要包含包含IDE的计算机的IP。当然,这也意味着运行PHP/Xdebug的机器需要能够连接到该IP地址。这也记录在中。我已成功使用以下配置启动调试器:
php_value xdebug.remote_host "192.168.1.149"
php_value error_reporting 22527
php_flag xdebug.remote_autostart Off
php_flag xdebug.remote_enable On
php_value xdebug.remote_port 9009
php_value xdebug.remote_handler dbgp
php_value xdebug.remote_log "..."
php_flag xdebug.profiler_enable off
php_flag xdebug.extended_info On
php_flag xdebug.coverage_enable On
php_value error_log "..."
我已成功使用以下配置启动调试器:
php_value xdebug.remote_host "192.168.1.149"
php_value error_reporting 22527
php_flag xdebug.remote_autostart Off
php_flag xdebug.remote_enable On
php_value xdebug.remote_port 9009
php_value xdebug.remote_handler dbgp
php_value xdebug.remote_log "..."
php_flag xdebug.profiler_enable off
php_flag xdebug.extended_info On
php_flag xdebug.coverage_enable On
php_value error_log "..."
谢谢你的回答。我已经将
remote\u主机
编辑到我的IDE 192.168.1.149的IP上,但仍然不起作用。远程调试日志中显示了什么(请参阅如何制作一个)感谢您的消息。文件始终为空。路径正确,chmod 777。我还能查什么来找出原因呢?谢谢你的回答。我已经将remote\u主机
编辑到我的IDE 192.168.1.149的IP上,但仍然不起作用。远程调试日志中显示了什么(请参阅如何制作一个)感谢您的消息。文件始终为空。路径正确,chmod 777。我还可以检查什么来找到原因?