量身定制的安装说明 摘要 已安装Xdebug:2.5.0rc1 服务器API:Apache 2.0处理程序 Windows:是-编译器:MS VC11-体系结构:x64 Zend Server:否 PHP版本:5.6.27 Zend API编号:220131226 PHP API编号:20131226 调试版本:否 线程安全构建:是 配置文件路径:C:\ Windows 配置文件:C:\ php \ php.ini 扩展目录:ext 您已经在运行最新的Xdebug版本通过php -m命令: [PHP模块] bcmath 日历 . . . (我有意删除了它们) [Zend模块] Xdebug来自netstat | findstr 9000 TCP   127.0.0.1:9000      mycomputername:62936 CLOSE_WAIT TCP   127.0.0.1:62936   mycomputername:9000   FIN_WAIT_2 TCP   [:: 1]:9000  mycomputername:62935 CLOSE_WAIT TCP   [:: 1}:62935   mycomputername :: 9000   FIN_WAIT_2最后但并非最不重要的一点是,在php.ini中没有[Xdebug]部分!有一些行,但是就像某些人说的那样,在单独的部分中没有任何内容,因此在文件末尾,我添加了以下行: [xdebug] zend_extension = php_xdebug-2.5.0rc1-5.6-vc11-x86_64.dll xdebug.remote_enable = 1 xdebug.remote_handler ="dbgp" xdebug.remote_enable = on xdebug.remote_host =本地主机" xdebug.remote_port = 9000我很感谢任何建议.解决方案不要在Windows上使用xdebug 2.5 RC,因为它有问题(不管使用什么IDE,无论是NetBeans还是PhpStorm,它都行不通). /p>暂时使用稳定的 xdebug 2.4.1 . https://bugs.xdebug.org/view.php?id=1361 https://bugs.xdebug.org/view.php?id=1366I am using windows 8, Netbeans 8.2, php 5.6, Apache and mysql. I installed them manually and did not use all-in-one package like WAMP.When I click on debugging icon (Ctrl+F5) it gets stuck on "waiting for connection (netbeans-xdebug)" while shows the page completely without stopping at the break points.I reviewed all the possible solutions but none of them worked for me. Such as:Changing the remote_host from "localhost" to 127.0.0.1 or even to the ip address of my machineChanging the port from 9000 to different ports. Also checking the "Session-ID = netbeans-xdebug"Setting the default "web browser" on NetbeansChecking https://xdebug.org/wizard.php and following the instructionSetting the date.zone in php.iniChecking the firewall (as far as I could find my firewall does not block the connection)Restarting httpd.exe (Apache) and netbeans and browserHere are some info which gained from my system:From https://xdebug.org/wizard.php: Tailored Installation Instructions Summary Xdebug installed: 2.5.0rc1 Server API: Apache 2.0 Handler Windows: yes - Compiler: MS VC11 - Architecture: x64 Zend Server: no PHP Version: 5.6.27 Zend API nr: 220131226 PHP API nr: 20131226 ?Debug Build: no Thread Safe Build: yes Configuration File Path: C:\Windows Configuration File: C:\php\php.ini Extensions directory: ext You're already running the latest Xdebug versionFrom php -m command: [PHP modules] bcmath calendar . . . (I deleted them intentionally) [Zend modules] XdebugFrom netstat | findstr 9000 TCP   127.0.0.1:9000       mycomputername:62936    CLOSE_WAIT TCP    127.0.0.1:62936    mycomputername:9000    FIN_WAIT_2 TCP    [::1]:9000    mycomputername:62935    CLOSE_WAIT TCP    [::1}:62935    mycomputername::9000    FIN_WAIT_2Last but not least in php.ini there was no [Xdebug] section!! there was some lines but as a separated section like some people said there was nothing so at the end of file I added these lines: [xdebug] zend_extension = php_xdebug-2.5.0rc1-5.6-vc11-x86_64.dll xdebug.remote_enable = 1 xdebug.remote_handler = "dbgp" xdebug.remote_enable = on xdebug.remote_host = "localhost" xdebug.remote_port = 9000I appreciate any suggestion. 解决方案 Do not use xdebug 2.5 RC on Windows -- it has issues (does not work -- regardless what IDE is used, be it NetBeans or PhpStorm).Use stable xdebug 2.4.1 for now.https://bugs.xdebug.org/view.php?id=1361https://bugs.xdebug.org/view.php?id=1366 这篇关于等待连接(netbeans-xdebug)卡住的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持! 上岸,阿里云!
08-28 18:53