代码之家  ›  专栏  ›  技术社区  ›  black sensei

xampp窗口上带有var\u dump的不可读输出

  •  1
  • black sensei  · 技术社区  · 15 年前

    我对var\u dump有一些问题。我在windows上使用xampp1.7.3。

    print "<pre>" print "</pre>" firebug 不是 installed on my firefox xdebug .

    从形式上说,我甚至有红色和格式很好的输出。现在它完全不可读。任何人可以给我一个提示,如何纠正。和html\u错误是从我看到的php\u信息。感谢阅读这篇文章。

    3 回复  |  直到 15 年前
        1
  •  5
  •   Artefacto    15 年前

    您以前使用过Xdebug;你现在不用了。没有它,就没有颜色,也没有HTML换行符(使用 nl2br ,将内容类型标题更改为 text/plain 或者把输出放到 <pre> 块)。

    看到了吗 "Variable Display Features" on the manual of Xdebug .

        2
  •  5
  •   Muhammad Azeem    11 年前

    在php.ini文件中取消对此行的注释。

        3
  •  2
  •   w3sic3    7 年前

    这个话题在我在PHP5工作的时候对我很有帮助。新安装的Xampp( ),不再安装xdebug。必须手动完成。解释如下:

    1. 转到 https://xdebug.org/wizard.php
    2. 制造 phpinfo(); 并将其粘贴到 the xdebug website
    3. Xdebug installed: no
    4. phpinfo();

      这次我们得到 Xdebug installed: 2.6.0

    推荐文章