I
I
Ivan2020-12-16 18:47:40
phpstorm
Ivan, 2020-12-16 18:47:40

Xdebug may not work after phpstorm or php update?

Good afternoon. xdebug stopped working. I suspect after the phpstorm update, but I can't say for sure. I checked the settings, in the etc/php/7.4/mods-available/xdebug.ini file it seems to be in place

zend_extension=xdebug.so
xdebug.remote_autostart=on
xdebug.remote_enable=on
xdebug.remote_handler="dbgp"
xdebug.remote_host=127.0.0.1
xdebug.remote_port=9000
xdebug.remote_mode=req
xdebug.idekey="PHPSTORM"

In phpstorm itself, I select the desired version of php, for xdebug port 9000. Then DBGp Proxy ide key = PHPSTORM, Host = 127.0.0.1, port= 9000. Then I configure the servers in the right corner as before, but that's not working. The module itself is there and enabled, php -v shows
with Xdebug v3.0.1, Copyright (c) 2002-2020, by Derick Rethans

What else can be? Ubuntu.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
D
Dmitry Gordinskiy, 2020-12-16
@DmitriyGordinskiy

Since I updated xdebug - update the configs to the correct ones.
https://xdebug.org/docs/upgrade_guide

I
Ivan, 2020-12-17
@Djonson86

Maybe someone will come in handy. Earned with such file configsetc/php/7.4/mods-available/xdebug.ini

zend_extension=xdebug.so
xdebug.mode=debug
xdebug.start_with_request = yes

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question