I've been struggling to get Xdebugger set up in PHPStorm on my Windows.
Here's a summary of what I've tried and found. Any help would be much appreciated.
I installed XAMPP for Win v7.3.0 (PHP7.3.0). After installing XAMPP, I can open Chrome and go to localhost and I see the proper Apache sites such as dashboard, phpmyadmin, and phpinfo. I can confirm the php info shows v7.3.
I tried a number of ways but was unable to install xdebug
Here is some of my configuration information
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\
He didn't recommend a version for me?
[Xdebug]
zend_extension =D:\6_Workstations\XAMPP\php\ext\php_xdebug-2.7.0beta1-7.3-vc15-x86_64.dll
The official website did not recommend the correct version to me. I tried two beta versions of 7.3 and also restarted the Apache server of xampp.There is something wrong with my PHP version, maybe xdebug does not support this version?
it reads x86
(and not x86_64
), VC15
and Thread Safe Build: yes
therefore you'd need x86
, VC15
, for ZTS
(called TS
on Windows).
PHP 7.3 VC15 TS (32bit)
does not exist (at least it's not already built).
you could run xdebug
for PHP 7.2
in 32bit mode - or upgrade to 64bit.