php - 使用 xdebug 调试时出现空白页

标签 php xdebug

我正在使用 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/

相关文章:

php - 如何完美使用redis中的五种数据结构

php - VSCode调试器跳过断点

codeigniter - `enable_query_strings` 工作不正常

php - 如何比较两个选择?

php - 在 PHP 中直接使用 superglobals 是好是坏?

php - 在负载平衡服务器上使用 Memcache

php - 如何让 xdebug 使用 cookie 而不是 $_GET 参数?

xdebug_start_trace 行为异常

PhpStorm X调试 : Waiting for incoming connection with ide key

javascript - 无法更改 chart.js 颜色填充或 y 轴