我正在使用 Netbeans 来做我的项目(codeigniter),我的 xdebug 是在 php ini 中配置的。以下是设置:
zend_extension = "C:\xampp\php\ext\php_xdebug.dll" ;xdebug.profiler_append = 0 ;xdebug.profiler_enable = 1 ;xdebug.profiler_enable_trigger = 0 ;xdebug.profiler_output_dir = "C:\xampp\tmp" ;xdebug.profiler_output_name = "cachegrind.out.%t-%s" xdebug.remote_enable = 1 xdebug.remote_handler = "dbgp" xdebug.remote_host = "127.0.0.1" xdebug.remote_autostart = 1 xdebug.idekey = "netbeans-xdebug" xdebug.remote_log="C:\xampp\tmp\xdebug.log" xdebug.remote_port=9001
php info 显示 xdebug 已激活。我在登录方法中的变量上设置断点并开始调试。出现登录页面的链接:
localhost/goldilock/index.php?XDEBUG_SESSION_START=netbeans-xdebug
登录后,断点未激活,无法调试,链接的 XDEBUG_SESSION_START=netbeans-xdebug 部分消失。
有什么办法可以激活调试。我找不到任何解决方案来激活调试器到断点。
xdebug.log 说明如下:
日志于 2013-07-01 05:40:22 打开 I:连接到配置的地址/端口:127.0.0.1:9000。 E: 无法连接到客户端。:-( 日志于 2013-07-01 05:40:23 关闭 日志于 2013-07-01 05:40:35 打开 I:连接到配置的地址/端口:127.0.0.1:9000。 E: 无法连接到客户端。:-( 日志于 2013-07-01 05:40:36 关闭 日志于 2013-07-01 05:40:38 打开 I:连接到配置的地址/端口:127.0.0.1:9000。 E: 无法连接到客户端。:-( 日志于 2013-07-01 05:40:39 关闭 日志于 2013-07-01 05:40:39 打开 I:连接到配置的地址/端口:127.0.0.1:9000。 E: 无法连接到客户端。:-( 日志于 2013-07-01 05:40:40 关闭