PhpStorm Xdebug:等待带有ide密钥的传入连接 [英] PhpStorm Xdebug : Waiting for incoming connection with ide key
问题描述
我正在运行PHP 7.0和PhpStorm 2016.1
I am running PHP 7.0 and PhpStorm 2016.1
我已经安装了x-debug,这是我的配置:
I have x-debug installed and this is my configuration :
在运行调试表单PhpStorm时,调试器"选项卡显示以下错误消息:
When running Debug form PhpStorm the Debugger tab shows this error message:
等待使用ide键'13136'的传入连接
Waiting for incoming connection with ide key '13136'
ide键每次都不同.请帮忙.
ide key varies every time. Please help.
推荐答案
您的问题不完整,因为它缺少xdebug的当前php设置,但是您似乎未配置idekey
(您看到的IDE Key是因此报告为"无值").只需添加:
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"
用于idekey
的值可以是您想要的任何字符串,但必须与您在PHPStorm中设置的字符串相同(请参见Settings
/Languages
/PHP
/Debug
/DBGp Proxy
/IDE Key
).
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
).
这篇关于PhpStorm Xdebug:等待带有ide密钥的传入连接的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!