Trouble configuring xdebug for PhpStorm on XAMPP f

2019-07-15 05:40发布

问题:

I have followed instructions to install and configure PhpStorm visual debugger for Mac OS, using xdebug.org/wizard.php with the tailored instructions, and worked through every step.

php -v shows:

PHP 5.6.29 (cli) (built: Dec  8 2016 23:03:30) 
Copyright (c) 1997-2016 The PHP Group
Zend Engine v2.6.0, Copyright (c) 1998-2016 Zend Technologies
with Xdebug v2.5.0, Copyright (c) 2002-2016, by Derick Rethans

in my php.ini (yes I verified this is the correct ini)

[Xdebug]
zend_extension = /Applications/XAMPP/xamppfiles/lib/php/extensions/no-debug-non-zts-20131226/xdebug.so
xdebug.remote_enable=1
xdebug.remote_host = 127.0.0.1
xdebug.remote_port=9000

I have restarted Apache since making the changes, and yet when I paste my phpinfo.php into the xdebug wizard it analyzes and the summary is as follows:

  • Xdebug Installed: no
  • Server API: Apache 2.0 Handler
  • Windows: no
  • Zend Server: no
  • PHP Version: 5.6.24
  • Zend API nr: 220131226
  • PHP API nr: 20131226
  • Debug Build: no
  • Thread Safe Build: no
  • Configuration File Path: /Applications/XAMPP/xamppfiles/etc
  • Configuration File: /Applications/XAMPP/xamppfiles/etc/php.ini
  • Extensions directory: /Applications/XAMPP/xamppfiles/lib/php/extensions/no-debug-non-zts-20131226

Any help is much appreciated.

EDIT: I have also followed the instructions at https://www.jetbrains.com/help/phpstorm/2016.1/configuring-xdebug.html to configure debugging on in the PhpStorm IDE.

EDIT 2:

my phpinfo():

  • Configuration File (php.ini) Path /Applications/XAMPP/xamppfiles/etc
  • Loaded Configuration File /Applications/XAMPP/xamppfiles/etc/php.ini

EDIT 3: Link to ENTIRE PhpInfo() https://drive.google.com/file/d/0B5Fz1a8OLiwRYW1RR0ZnbFVndjg/view?usp=sharing

回答1:

For future reference:

User followed this tutorial to be able to use xdebug on XAMPP/OSX and PhpStorm.