0

I'm using Xdebug v3.4.0 (with PHP 8.3.9).

I get this error for every request.

I tried other Xdebug versions but still got the issue.

Here my php.ini :

[XDebug]
zend_extension = xdebug
xdebug.mode=debug
xdebug.start_with_request=trigger 

My PhpStorm settings :

Phpstorm settings

Phpstorm settings 2

Don't hesitate if you need more info.

Thanks

3
  • Make sure it and phpstorm can communicate on port 9003. Usually it could be anti virus/firewall. Commented Apr 18 at 13:14
  • Also, for step debugging the start on request value is usually = yes instead of =trigger. I’ve never used trigger for that value so can’t say if it matters. Just mentioning it. Commented Apr 18 at 14:55
  • @Tyrsson, thank you for answer. The problem with start_with_request=true is that EVERY request will try to connect to xdebug even if your are not listening to it, and the error will pop. Putting the value trigger will need to add some extra to your request to tell that you are waiting for xdebug (something like 'XDEBUG_SESSION' in your cookies). I'm using XdebugHelper by Jetbrain to add this cookie when I want to debug. Don't know why it wasn't working with this method but suddenly it is ... Nevermind, I guess it's the life of a developer ... Commented Apr 22 at 9:00

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.