我正在使用 php storm 和 xdebug 扩展来调试我的 php 代码,当我在请求结束时激活调试时,我看到白页,没有任何响应,如果我停用 debuggger 助手,页面会成功呈现。
这正常吗?
最佳答案
在 php.ini 中为 xdebug 设置这些值帮助了我:
xdebug.default_enable=1
xdebug.remote_autostart=1
xdebug.remote_connect_back=On
xdebug.remote_enable=1
xdebug.remote_handler=dbgp
xdebug.remote_port=9000
xdebug.remote_host=localhost
我遇到了 Vagrant 不会与 Phpstorm 成为 friend 的问题。我能够在脚本的第一行下断点,但它没有进一步执行,只是返回了一个空行。
关于php - 使用 xdebug 调试时出现空白页,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/14479308/