【发布时间】:2016-05-25 12:59:14
【问题描述】:
我在代码中使用调试器时遇到了麻烦,这是我第一次使用调试器,我不知道我这样做是否正确,但它对我不起作用。它总是在变量部分显示此消息...
等待 ide key '13001' 的传入连接
我按照这一步...
1.我的 xdebug 的 php.ini 设置
[Xdebug]
zend_extension="D:\XAMMPI\php\ext\php_xdebug-2.4.0-5.6-vc11.dll"
xdebug.remote_enable=1
xdebug.remote_host=localhost
xdebug.remote_port=80 //i also try the default port (9000) here but it still not working
xdebug.idekey=PHPSTORM
2。我为 Debugger 创建配置设置。
3.我将断点应用于代码进行测试
我正在使用 PhpStorm 2016.1
任何帮助将不胜感激
更新 - 1
【问题讨论】:
-
1) "xdebug.remote_port=80" -- 这是错误的......请在进行此类更改之前阅读该端口号的用途。 xdebug.org/docs/all_settings 2) confluence.jetbrains.com/display/PhpStorm/…
-
"UPDATE - 1" -- 你正在运行 JavaScript 调试会话 -- 难怪 PHP 调试在这里不起作用......