Complementando el post anterior
👉👉 Activar xdebug en phpStorm👈👈
Al analizar el script generado de [php_info.txt] con el comando [php -i >> php_info.txt] en el sitio web https://xdebug.org/wizard para un ambiente sin xdebug instalado se ve de la siguiente manera:
Instructions
- Download xdebug-2.9.8.tgz
- Install the pre-requisites for compiling PHP extensions.
On your Ubuntu system, install them with:apt-get install php-dev autoconf automake
- Unpack the downloaded file with
tar -xvzf xdebug-2.9.8.tgz
- Run:
cd xdebug-2.9.8
Run:
phpize
(See the FAQ if you don't havephpize
).As part of its output it should show:
Configuring for: ... Zend Module Api No: 20180731 Zend Extension Api No: 320180731
If it does not, you are using the wrong
phpize
. Please follow this FAQ entry and skip the next step.- Run:
./configure
- Run:
make
- Run:
cp modules/xdebug.so /usr/lib/php/20180731
- Edit
/etc/php/7.3/cli/php.ini
and add the linezend_extension = /usr/lib/php/20180731/xdebug.so
- Please also update
php.ini
files in adjacent directories, as your system seems to be configured with a separatephp.ini
file for the web server and command line.