Dennis Konoppa
Dennis Konoppa

Reputation: 225

Xdebug 3.2 with PHP 8.0 not auto detecting in PhpStorm

I have a project where I want to debug a website in the browser with the Xdebug extension. I work in PhpStorm.

Before my problem I had Xdebug 3.1.5 and PHP 8.0 and it worked with the following Xdebug configuration for the php.ini:

xdebug.mode=debug
xdebug.client_port=9003
xdebug.idekey=PHPSTORM
xdebug.discover_client_host = 1
xdebug.start_with_request = trigger

Now, as I updated to Xdebug 3.2.0 the same configuration is not working... When I remove the server in PhpStorm, there will no incoming Xdebug connection be auto detected in PhpStorm.

Is there something I need to change now with Xdebug 3.2.0?

Upvotes: 0

Views: 1056

Answers (1)

Evgeny Markov
Evgeny Markov

Reputation: 1

The entire Internet is littered with advice to set xdebug.start_with_request=yes. But normal work for PHPSTORM is xdebug.start_with_request=trigger. BTW for "yes" you need additionally turn on "listening ... connections" otherwise it won't work. Both modes ("yes" and "trigger") will work as well - if one work another also will work. Therefore there is no point in testing connection with "yes" value. Some comments from Xdebug code: https://github.com/xdebug/xdebug/blob/12adc6394adbf14f239429d72cf34faadddd19fb/xdebug.ini#L997

I just try to help don't retry my mistake with "yes" mode. Thanks for -1...

Upvotes: -1

Related Questions