【发布时间】:2017-01-20 03:27:14
【问题描述】:
我的系统是
- 具有最新更新的 Windows 10
- 最新版本的火狐浏览器
- Expression Web 作为开发工具
- WampServer 版本 3.0.6 64 位作为 Web 服务器
我安装了 xdebug dll,就像 https://xdebug.org/docs/install 中提到的那样。
php.ini:
[xdebug]
zend_extension=F:\wamp64\bin\php\php5.6.25\ext\php_xdebug-2.5.0-5.6-vc11-x86_64.dll
- 我重新启动了 wamp 服务器
- 我刷新了 wamp 服务器
-
我查看了 php.ini 并找到了 zend-Logo 和这个
编译器 MSVC11 (Visual C++ 2012)
...
该程序使用 Zend 脚本语言引擎:
Zend Engine v2.6.0,版权所有 (c) 1998-2016 Zend Technologies
使用 Xdebug v2.5.0,版权所有 (c) 2002-2016,由 Derick Rethans 提供 -
我在https://xdebug.org/wizard.php 运行测试并得到了
Summary Xdebug installed: no Server API: Command Line Interface Windows: yes - Compiler: MS VC11 - Architecture: x64 Zend Server: no PHP Version: 5.6.25 Zend API nr: 220131226 PHP API nr: 20131226 Debug Build: no Thread Safe Build: yes Configuration File Path: C:\WINDOWS Configuration File: F:\wamp64\bin\php\php5.6.25\php.ini Extensions directory: F:\wamp64\bin\php\php5.6.25\ext 我在命令行中运行
php -m,发现没有xdebug模块
[PHP Modules] bcmath bz2 calendar calendar Core ctype curl date dom ereg exif fileinfo filter ftp gd gettext gmp hash iconv imap intl json ldap libxml mbstring mcrypt mhash mysql mysqli mysqlnd odbc openssl pcre PDO pdo_mysql pdo_sqlite Phar Reflection session shmop SimpleXML soap sockets SPL sqlite3 standard tokenizer wddx xml xmlreader xmlrpc xmlwriter xsl zip zlib [Zend Modules]
现在我真的不知道出了什么问题以及我可以做什么来使用 xdebug。 寻找一些有用的想法。
【问题讨论】:
-
您可能正在编辑错误的 php.ini 文件(您可能有一个用于 CLI 和一个用于 Apache)。对于 CLI——显示
php --ini输出;对于 Apache -- 显示通过浏览器捕获的phpinfo();输出的顶部表。 -
WAMPServer 已经安装了 XDEBUG !!!!!
标签: php wamp wampserver xdebug