PhpStorm Xdebug : Waiting for incoming connection

2019-07-26 15:50发布

问题:

I am running PHP 7.0 and PhpStorm 2016.1

I have x-debug installed and this is my configuration :

When running Debug form PhpStorm the Debugger tab shows this error message:

Waiting for incoming connection with ide key '13136'

ide key varies every time. Please help.

回答1:

Your question is incomplete as it lacks your current php settings for xdebug, but it looks like you do not have idekey configured (you see IDE Key to be reported as "No value" for that reason). Just add:

xdebug.idekey = ....

to your config. Here's working config from my setup:

xdebug.remote_handler="dbgp"
xdebug.remote_port=9000
xdebug.remote_autostart = on
xdebug.remote_start = on
xdebug.remote_enable = on
xdebug.remote_connect_back = on
xdebug.idekey = "xdebug"

Value used for idekey can be any string you want but must be the same you set up in PHPStorm (see Settings / Languages / PHP / Debug / DBGp Proxy / IDE Key).