我已经在windows和netbeans上使用xampp一段时间了,最后想要让xdebug调试器正常工作。由于某种原因,它不起作用。
我的phpinfo()文件没有显示任何xdebug信息,即使我尝试调整并更改了Google建议的php.ini文件。
以下是我的php.ini文件的相关部分:
zend_extension = \xampp\php\ext\php_xdebug-2.3.3-5.6-vc11.dll
xdebug.remote_enable=on
xdebug.remote:autostart = on
xdebug.remote_host=localhost
xdebug.remote_port=9000
; Port number must match debugger port number in NetBeans IDE Tools > Options > PHP
xdebug.remote_handler=dbgp
php.ini文件的remote_ports和netbeans调试器设置匹配。 我还确保编辑正确的php.ini文件。
然而:即使我的XAMPP工作正常,因为我将端口更改为8081和444,每次启动它时,都会出现以下错误: http://i.stack.imgur.com/o1ZsT.png
另请注意,我使用的是Windows 10 64位而不是Windows 8。
我的错误日志很乱:
[Thu Sep 17 08:50:14.069550 2015] [ssl:warn] [pid 5768:tid 500] AH01909: www.example.com:444:0 server certificate does NOT include an ID which matches the server name
[Thu Sep 17 08:50:14.159597 2015] [core:warn] [pid 5768:tid 500] AH00098: pid file C:/xampp/apache/logs/httpd.pid overwritten -- Unclean shutdown of previous Apache run?
Failed loading C:\xampp\php\ext\\xampp\php\ext\php_xdebug-2.3.3-5.6-vc11.dll
example.com:444:0 server certificate does NOT include an ID which matches the server name
[Thu Sep 17 08:50:14.404611 2015] [mpm_winnt:notice] [pid 5768:tid 500] AH00455: Apache/2.4.16 (Win32) OpenSSL/1.0.1p PHP/5.6.12 configured -- resuming normal operations
[Thu Sep 17 08:50:14.404611 2015] [mpm_winnt:notice] [pid 5768:tid 500] AH00456: Apache Lounge VC11 Server built: Jul 12 2015 10:56:48
[Thu Sep 17 08:50:14.404611 2015] [core:notice] [pid 5768:tid 500] AH00094: Command line: 'c:\\xampp\\apache\\bin\\httpd.exe -d C:/xampp/apache'
[Thu Sep 17 08:50:14.410612 2015] [mpm_winnt:notice] [pid 5768:tid 500] AH00418: Parent: Created child process 7852
[Thu Sep 17 08:50:15.318272 2015] [ssl:warn] [pid 7852:tid 512] AH01909: www.example.com:444:0 server certificate does NOT include an ID which matches the server name
Failed loading C:\xampp\php\ext\\xampp\php\ext\php_xdebug-2.3.3-5.6-vc11.dll
example.com:444:0 server certificate does NOT include an ID which matches the server name
[Thu Sep 17 08:50:15.609979 2015] [mpm_winnt:notice] [pid 7852:tid 512] AH00354: Child: Starting 150 worker threads.
我也试过更改这一行:
zend_extension = \xampp\php\ext\php_xdebug-2.3.3-5.6-vc11.dll
到
zend_extension = php_xdebug-2.3.3-5.6-vc11.dll
Failed loading C:\xampp\php\ext\\xampp\php\ext\php_xdebug-2.3.3-5.6-vc11.dll
error.log中的行消失了。
但它仍然无法奏效。
我绝望了,任何帮助都表示赞赏!
干杯