Cannot parse server name for external Xdebug connection. To fix it create environment variable PHP_IDE_CONFIG on the remote server.

To fix it create environment variable PHP_IDE_CONFIG on the remote server.  Windows: set PHP_IDE_CONFIG="serverName=SomeName" Linux / Mac OS X: export PHP_IDE_CONFIG="serverName=SomeName".

similar to https://intellij-support.jetbrains.com/hc/en-us/community/posts/206349109-Problem-with-xdebug-Cannot-evaluate-parse-expression-isset-SERVER-PHP-IDE-CONFIG-

[xdebug]
zend_extension=xdebug
xdebug_remote_connect_back=1
xdebug.remote_autostart=1
xdebug.remote_enable=1
xdebug.remote_host=127.0.0.1
xdebug.remote_port=9001
xdebug.autostart=0
xdebug.idekey="PHPSTORM"
xdebug.client_host=127.0.0.1
xdebug.client_port=9000
xdebug.mode=debug
xdebug.log="/var/log/xdebug/xdebug.log"
xdebug.discover_client_host=1
xdebug.start_with_request=yes
xdebug.extended_info = 1

 

 

0

As a result, its very hard to debug 

0

This is happening because you have xdebug.remote_autostart/xdebug.start_with_request enabled, so Xdebug starts for any PHP run and sends the debug data to the IDE. Is there a reason you've enabled it?

0

请先登录再写评论。