php - 如何配置 xdebug 来使用 https?

标签 php https xdebug

我无法让 xdebug 使用 https 捕获断点,但使用 http 则可以正常工作。这是 php.ini 中的 xdebug 配置:

xdebug.remote_enable=on
xdebug.remote_handler=dbgp
xdebug.remote_host=localhost
xdebug.remote_port=9000
xdebug.remote_autostart = 0
xdebug.remote_connect_back = 0
xdebug.idekey = "netbeans-xdebug"

我查看了 xdebug 文档,但找不到任何提及 https 的内容。有什么办法可以做到这一点吗?

最佳答案

我在使用 PHPStorm/IDEA 时遇到了同样的问题。必须在服务器设置中将主机端口从 80 更改为 443

首选项 -> 语言和框架 -> PHP -> 服务器

关于php - 如何配置 xdebug 来使用 https?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/25368613/

相关文章:

php - $_POST数组问题

php - 无法打开流 : No such file of directory in. .. PHP fopen

php - SWFUpload 选择文件后会发生什么?

ios:公钥 SSL 固定返回 Nil

google-chrome - 如何从 Chrome 中删除 "is dangerous, so Chrome has blocked it" block ?

PhpStorm 和 Remote XDebug 不工作

php - Imagick SVG 到 JPG 错误无解码委托(delegate)

security - https url 中的用户名和密码

php - xdebug断点失败

php - Netbeans PHP 调试器中的缩短值