我已经安装了netbeans 7.3, php 5.4.7和xdebug通过xampp正确配置。
当我尝试在我的index.html文件上启动一个调试会话,其中包含我提交给我的php文件的形式,调试器从未连接(等待连接)。但是,如果我在php文件上启动调试器,它会运行,但是,当然,它没有从索引页上的表单的值?
以下是我的php.ini设置:zend_extension = "C:xamppphpextphp_xdebug-2.2.1-5.4-vc9.dll"
xdebug.remote_enable=on
xdebug.remote_handler=dbgp
xdebug.remote_mode=req
xdebug.remote_host=127.0.0.1
xdebug.remote_port=9000
我错过了什么?
我不能说出确切的解决方案,但根据我的经验,您应该尝试以下步骤
- 从xdebug custom download下载正确的xdebug版本并粘贴phpinfo()输出
- 重新启动netbeans和xammp
-
如果你希望你有[xdebug]之前你的这些ini设置,我有以下在我的php ini
;XDEBUG扩展
zend_extension = " c:/里面/bin/php/php5.3.5/zend_ext/php_xdebug - 2.1.0 - 5.3 - vc6.dll"
[xdebug]xdebug.remote_enable =对xdebug.remote_handler = dbgp则= 0xdebug.remote_host = localhostxdebug.remote_port = 9000
我使用netbeans 7.3, PHP 5.3.5
我使用xampp 1.8.1(php 5.4.7)和netbeans ide 7.3
这是我的php.ini配置,当apache启动时我有一些警告,但我可以很好地调试。
还要确保在netbeans工具中配置调试端口,php,调试,端口9000
[XDebug]
zend_extension = "C:xamppphpextphp_xdebug.dll"
;xdebug.profiler_append = 0;
;xdebug.profiler_enable = 1;
;xdebug.profiler_enable_trigger = 0 ;
;xdebug.profiler_output_dir ="C:xampptmp" ;
;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_port = 9000;
;xdebug.trace_output_dir = "C:xampptmp";