我一直在努力在Windows上的PHPStorm中设置Xdebugger。
以下是我尝试过发现的内容的摘要。任何帮助将不胜感激。
我为Win v7.3.0(PHP7.3.0)安装了XAMPP。安装XAMPP之后,我可以打开Chrome并转到localhost,然后看到正确的Apache站点,例如仪表板,phpmyadmin和phpinfo。我可以确认php信息显示为v7.3。
我尝试了多种方法,但无法安装xdebug
这是我的一些配置信息
Failed loading D:\6_Workstations\XAMPP\php\ext\php_xdebug-2.7.0beta1-7.3-vc15-x86_64.dll
phpinfo()
PHP Version => 7.3.0
System => Windows NT DESKTOP-MF9SPGT 10.0 build 17763 (Windows 10) i586
Build Date => Dec 6 2018 01:51:18
Compiler => MSVC15 (Visual C++ 2017)
Architecture => x86
Configure Command => cscript /nologo configure.js "--enable-snapshot-build" "--enable-debug-pack" "--with-pdo-oci=c:\php-snap-build\deps_aux\oracle\x86\instantclient_12_1\sdk,shared" "--with-oci8-12c=c:\php-snap-build\deps_aux\oracle\x86\instantclient_12_1\sdk,shared" "--enable-object-out-dir=../obj/" "--enable-com-dotnet=shared" "--without-analyzer" "--with-pgo"
Server API => Command Line Interface
Virtual Directory Support => enabled
Configuration File (php.ini) Path => C:\Windows
Loaded Configuration File => D:\6_Workstations\XAMPP\php\php.ini
Scan this dir for additional .ini files => (none)
Additional .ini files parsed => (none)
PHP API => 20180731
PHP Extension => 20180731
Zend Extension => 320180731
Zend Extension Build => API320180731,TS,VC15
PHP Extension Build => API20180731,TS,VC15
Debug Build => no
Thread Safety => enabled
Thread API => Windows Threads
Zend Signal Handling => disabled
Zend Memory Manager => enabled
Zend Multibyte Support => provided by mbstring
IPv6 Support => enabled
DTrace Support => disabled
Registered PHP Streams => php, file, glob, data, http, ftp, zip, compress.zlib, compress.bzip2, https, ftps, phar
Registered Stream Socket Transports => tcp, udp, ssl, tls, tlsv1.0, tlsv1.1, tlsv1.2
Registered Stream Filters => convert.iconv.*, string.rot13, string.toupper, string.tolower, string.strip_tags, convert.*, consumed, dechunk, zlib.*, bzip2.*
This program makes use of the Zend Scripting Language Engine:
Zend Engine v3.3.0-dev, Copyright (c) 1998-2018 Zend Technologies
Tailored Installation Instructions
Summary
Xdebug installed: no
Server API: Command Line Interface
Windows: yes - Compiler: MS VC15 - Architecture: x86
Zend Server: no
PHP Version: 7.3.0
Zend API nr: 320180731
PHP API nr: 20180731
Debug Build: no
Thread Safe Build: yes
Configuration File Path: C:\Windows
Configuration File: D:\6_Workstations\XAMPP\php\php.ini
Extensions directory: D:\6_Workstations\XAMPP\php\ext
Instructions
Download
Move the downloaded file to D:\6_Workstations\XAMPP\php\ext
Edit D:\6_Workstations\XAMPP\php\php.ini and add the line
zend_extension = D:\6_Workstations\XAMPP\php\ext\
他不推荐我一个版本?
[Xdebug]
zend_extension =D:\6_Workstations\XAMPP\php\ext\php_xdebug-2.7.0beta1-7.3-vc15-x86_64.dll
官方网站没有向我推荐正确的版本。我尝试了7.3的两个beta版本,还重新启动了xampp的Apache服务器。我的PHP版本出了点问题,也许xdebug不支持该版本?
答案 0 :(得分:1)
它读取x86
(而不是x86_64
),VC15
和Thread Safe Build: yes
因此,x86
需要VC15
,ZTS
(在Windows上称为TS
)。
PHP 7.3 VC15 TS (32bit)
does not exist(至少尚未构建)。
您可以在32位模式下为PHP xdebug
运行7.2
或升级到64位。