Answer the question
In order to leave comments, you need to log in
Why is xdebug not working in PHP Storm?
Hello! Please advise how to deal with the error.
What we have: 1. Installed webstorm. 2. Xdebug. 3. An extension for the xdebug browser. 4. PHP 8.
But Xdebug doesn't work in the browser.
The error is: Cannot accept external Xdebug connection. $_SERVER["SERVER_NAME"] is empty, it may be caused by web server misconfiguration.
As I understand it, you need to add a parameter $_SERVER["SERVER_NAME"] to the web server settings.
Yes, but where does the webstorm have a web server? What file should I put in? That's the question.
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question