I
I
Ivan2022-02-12 21:14:39
xdebug
Ivan, 2022-02-12 21:14:39

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

1 answer(s)
S
SashaGray, 2022-02-14
@SashaGray

Hello Ivan. Create an environment variable PHP_IDE_CONFIGand put serverName=MyServerName.
There is indeed a problem, discussed here .

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question