Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/jsf-2/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Php 如何选择xdebug的正确版本?_Php_Xdebug - Fatal编程技术网

Php 如何选择xdebug的正确版本?

Php 如何选择xdebug的正确版本?,php,xdebug,Php,Xdebug,我一直在努力在Windows上的PHPStorm中设置Xdebugger 以下是我尝试和发现的总结。任何帮助都将不胜感激 我为Win v7.3.0(PHP7.3.0)安装了XAMPP。安装XAMPP后,我可以打开Chrome并转到localhost,我可以看到合适的Apache站点,如dashboard、phpmyadmin和phpinfo。我可以确认php信息显示v7.3 我尝试了许多方法,但无法安装xdebug 这是我的一些配置信息 php-i Xdebug 他没有给我推荐一个版本 php.

我一直在努力在Windows上的PHPStorm中设置Xdebugger

以下是我尝试和发现的总结。任何帮助都将不胜感激

我为Win v7.3.0(PHP7.3.0)安装了XAMPP。安装XAMPP后,我可以打开Chrome并转到localhost,我可以看到合适的Apache站点,如dashboard、phpmyadmin和phpinfo。我可以确认php信息显示v7.3

我尝试了许多方法,但无法安装xdebug

这是我的一些配置信息

php-i Xdebug 他没有给我推荐一个版本

php.ini 包括 官方网站没有向我推荐正确的版本。我尝试了两个7.3的测试版,还重新启动了xampp的Apache服务器。我的PHP版本有问题,可能xdebug不支持这个版本?

它读
x86
(而不是
x86\u 64
)、
VC15
线程安全构建:是

因此,对于
ZTS
(在Windows上称为
TS
),您需要
x86
VC15

PHP7.3VC15TS(32位)
(至少它还没有构建)


您可以在32位模式下运行
xdebug
for PHP
7.2
,也可以升级到64位。

非常感谢您的提示。我仔细阅读了自己的情况和文档说明,并在[PHP官方网站]上了解了NTS\TS版本的差异(非常感谢您的提示。我仔细阅读了自己的情况和文档说明,并在PHP官网上了解了NTS\TS版本的差异。下午,我还更改了xampp的PHP7.2版本,现在我可以顺利运行xdebug了。)。下午,我还更改了xampp的PHP7.2版本,现在我可以顺利运行xdebug。@Electrix但仍处于beta…并且仍然没有
x86_64
。如果您想使用xdebug运行PHP7.3,那么有一个
PHP7.3 VC15 TS(32位)
PECL存储库上提供的版本:另请注意,从PHP 7.3.2版开始,XAMPP可用于64位窗口:
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