Xdebug is not running with WAMP
我的系统是
我安装了xdebug dll,就像在https://xdebug.org/docs/install中提到的那样。
php.ini:
1 2 | [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和这个
Compiler MSVC11 (Visual C++ 2012)
...
This program makes use of the Zend Scripting Language Engine:
Zend Engine v2.6.0, Copyright (c) 1998-2016 Zend Technologies
with Xdebug v2.5.0, Copyright (c) 2002-2016, by Derick Rethans -
我在https://xdebug.org/wizard.php上运行了测试,并得到了
1
2
3
4
5
6
7
8
9
10
11
12
13Summary
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可以做什么。
寻找一些有用的想法。
WAMPServer随附已安装的XDEBUG。但是仅在Apache使用的
如果您希望它可用于PHP CLI,那么您要做的就是
然后它也将在PHP CLI中工作
如果要最新版本的XDEBUG,请访问http://wampserver.aviatechno.net/,并根据安装的WAMPServer版本(32或64位)下载XDEBUG ADDON
您也可以在此处下载最新版本的WAMPServer
但是还有可用的ADDONS,它将添加最新版本的Apache,Mysql和PHP以及phpMyAdmin / Sysinfo和Adminer的最新版本。
我建议您摆脱下载的XDEBUG的任何版本
如果调试器仍然无法正常运行,请确保已在php.ini文件中启用了xdebug.remote_enable。
只需执行以下步骤
运行greenIcon-> Php-> php扩展-> zend扩展->选择已安装的php_xdebug_version的转到服务。
转到php.ini文件后,搜索[opcache]->在[opcache]行下面的注释zend_extension。
然后保存
重新启动服务。