Debug PHP Storm creates empty server definitions

Something seems to be broken in my PHP Storm IDE. When I try to debug using a listener, Storm loads the Inbound Connection from Xdebug dialog box, but the server name text box is empty. I can specify a file for debugging, but nothing happens in the IDE. I see that Storm is debugging a file in a stack trace, but it does not map to a file in my IDE.

When I check the server configuration in Storm, he created an unnamed server definition. If I complete this definition, select it and try debugging again, Storm just creates another empty server definition.

I have been successfully debugging Storm for many years, so I'm really not sure what happened to cause this behavior. Any help would be appreciated.

Thank.

+4
source share
2 answers

So, your nginx web server software .

This issue should be fixed in the nginx configuration file. Thing: nginx does not provide a value for $_SERVER["SERVER_NAME"](in PHP terms) that PhpStorm uses to determine which configuration to use during debugging.

Check this thread (last few posts) on how to fix it: http://devnet.jetbrains.com/message/5494835#5494835

- fastcgi_param SERVER_NAME $host; .

+4

i "server_name xxx.foo.com;" nginx

0

Source: https://habr.com/ru/post/1538426/


All Articles