如何Select xdebug 的正确版本?
How to Select the correct version of xdebug?
我一直在努力在我的 Windows 上的 PHPStorm 中设置 Xdebugger。
以下是我尝试和发现的内容的摘要。任何帮助将不胜感激。
我为 Win v7.3.0 (PHP7.3.0) 安装了 XAMPP。安装 XAMPP 后,我可以打开 Chrome 并转到本地主机,我会看到正确的 Apache 站点,例如仪表板、phpmyadmin 和 phpinfo。我可以确认 php 信息显示 v7.3。
我尝试了多种方法,但无法安装 xdebug
这里是我的一些配置信息
php-i
Failed loading D:_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:_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
X调试
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:_Workstations\XAMPP\php\php.ini
Extensions directory: D:_Workstations\XAMPP\php\ext
Instructions
Download
Move the downloaded file to D:_Workstations\XAMPP\php\ext
Edit D:_Workstations\XAMPP\php\php.ini and add the line
zend_extension = D:_Workstations\XAMPP\php\ext\
他没有给我推荐版本吗?
php.ini
[Xdebug]
zend_extension =D:_Workstations\XAMPP\php\ext\php_xdebug-2.7.0beta1-7.3-vc15-x86_64.dll
包括
官网没有给我推荐正确的版本。我尝试了 7.3 的两个 beta 版本,还重新启动了 xampp.There 的 Apache 服务器 我的 PHP 版本有问题,也许 xdebug 不支持这个版本?
它显示为 x86
(而不是 x86_64
)、VC15
和 Thread Safe Build: yes
因此 x86
、VC15
用于 ZTS
(在 Windows 上调用 TS
)。
PHP 7.3 VC15 TS (32bit)
does not exist(至少还没建好)
您可以 运行 xdebug
在 32 位模式下 PHP 7.2
- 或者升级到 64 位。
我一直在努力在我的 Windows 上的 PHPStorm 中设置 Xdebugger。
以下是我尝试和发现的内容的摘要。任何帮助将不胜感激。
我为 Win v7.3.0 (PHP7.3.0) 安装了 XAMPP。安装 XAMPP 后,我可以打开 Chrome 并转到本地主机,我会看到正确的 Apache 站点,例如仪表板、phpmyadmin 和 phpinfo。我可以确认 php 信息显示 v7.3。
我尝试了多种方法,但无法安装 xdebug
这里是我的一些配置信息
php-i
Failed loading D:_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:_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
X调试
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:_Workstations\XAMPP\php\php.ini
Extensions directory: D:_Workstations\XAMPP\php\ext
Instructions
Download
Move the downloaded file to D:_Workstations\XAMPP\php\ext
Edit D:_Workstations\XAMPP\php\php.ini and add the line
zend_extension = D:_Workstations\XAMPP\php\ext\
他没有给我推荐版本吗?
php.ini
[Xdebug]
zend_extension =D:_Workstations\XAMPP\php\ext\php_xdebug-2.7.0beta1-7.3-vc15-x86_64.dll
包括
官网没有给我推荐正确的版本。我尝试了 7.3 的两个 beta 版本,还重新启动了 xampp.There 的 Apache 服务器 我的 PHP 版本有问题,也许 xdebug 不支持这个版本?
它显示为 x86
(而不是 x86_64
)、VC15
和 Thread Safe Build: yes
因此 x86
、VC15
用于 ZTS
(在 Windows 上调用 TS
)。
PHP 7.3 VC15 TS (32bit)
does not exist(至少还没建好)
您可以 运行 xdebug
在 32 位模式下 PHP 7.2
- 或者升级到 64 位。