我无法让 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/