代码之家  ›  专栏  ›  技术社区  ›  Fifi

Xdebug无法正常工作的彩色var\u转储

  •  0
  • Fifi  · 技术社区  · 6 年前

    How to get xdebug var_dump to show full object/array

    http://www.dieuwe.com/blog/xdebug-ubuntu-1604-php7

    xdebug.overload_var_dump=2 
    

    根据

    Colored var_dump() and errors

    而且在varèu dump中仍然没有颜色。我想知道为什么它不起作用?

    4.9.120-c9#1 SMP星期三8月15日22:48:26 UTC 2018 x86_64 x86_64 x86_64 GNU/Linux

    我的PHP版本: PHP版本7.2.9-1+ubuntu14.04.1+deb.sury.org+1

    1 回复  |  直到 6 年前
        1
  •  1
  •   Fifi    6 年前

    答案在地图上 Xdebug FAQ

    问:Xdebug不格式化输出。

    答:确保在PHP.ini中将PHP的html\u错误设置为1

    html_errors

    html_errors = On