我在我的Ubuntu 14.04上使用xdebug和php 5.6版,一切都很好,直到xdebug var_dump的输出开始在一行上打印所有内容,而不是打破行并识别代码。
这是chrome dev工具的响应标签上的html输出:
<pre class='xdebug-var-dump' dir='ltr'>
<small>/path/to/source/Controller.php:28:</small>
<b>array</b> <i>(size=1)</i>
0 <font color='#888a85'>=></font>
<b>object</b>(<i>Application\Entity\Reciimpr</i>)[<i>973</i>]
<i>protected</i> 'id' <font color='#888a85'>=></font> <small>int</small> <font color='#4e9a06'>72403</font>
<i>protected</i> 'dtimp' <font color='#888a85'>=></font>
<b>object</b>(<i>DateTime</i>)[<i>977</i>]
<i>public</i> 'date' <font color='#888a85'>=></font> <small>string</small> <font color='#cc0000'>'2017-09-25 00:00:00.000000'</font> <i>(length=26)</i>
<i>public</i> 'timezone_type' <font color='#888a85'>=></font> <small>int</small> <font color='#4e9a06'>3</font>
<i>public</i> 'timezone' <font color='#888a85'>=></font> <small>string</small> <font color='#cc0000'>'America/Sao_Paulo'</font> <i>(length=17)</i>
<i>protected</i> 'usuaimp' <font color='#888a85'>=></font> <small>string</small> <font color='#cc0000'>'USER '</font> <i>(length=10)</i>
<i>protected</i> 'ipmaquina' <font color='#888a85'>=></font> <small>string</small> <font color='#cc0000'>'::1 '</font> <i>(length=15)</i>
<i>protected</i> 'nume' <font color='#888a85'>=></font> <small>int</small> <font color='#4e9a06'>33</font>
<i>protected</i> 'sisimp' <font color='#888a85'>=></font> <small>string</small> <font color='#cc0000'>'NGM'</font> <i>(length=3)</i>
<i>protected</i> 'ano' <font color='#888a85'>=></font> <small>int</small> <font color='#4e9a06'>2017</font>
<i>protected</i> 'nvias' <font color='#888a85'>=></font> <small>int</small> <font color='#4e9a06'>0</font>
<i>protected</i> 'mvfi' <font color='#888a85'>=></font>
<b>object</b>(<i>Application\Entity\Movifina</i>)[<i>939</i>]
<i>protected</i> 'id' <font color='#888a85'>=></font> <small>int</small> <font color='#4e9a06'>290756</font>
<i>protected</i> 'tpmv' <font color='#888a85'>=></font> <small>int</small> <font color='#4e9a06'>1</font>
<i>protected</i> 'core' <font color='#888a85'>=></font>
<b>object</b>(<i>DoctrineORMModule\Proxy\__CG__\Application\Entity\Rececont</i>)[<i>996</i>]
...
<i>protected</i> 'parc' <font color='#888a85'>=></font> <small>int</small> <font color='#4e9a06'>0</font>
<i>protected</i> 'caixa' <font color='#888a85'>=></font> <small>boolean</small> <font color='#75507b'>true</font>
<i>protected</i> 'fore' <font color='#888a85'>=></font>
<b>object</b>(<i>DoctrineORMModule\Proxy\__CG__\Application\Entity\Formrece</i>)[<i>983</i>]
...
<i>protected</i> 'banco' <font color='#888a85'>=></font> <font color='#3465a4'>null</font>
<i>protected</i> 'agencia' <font color='#888a85'>=></font> <font color='#3465a4'>null</font>
<i>protected</i> 'conta' <font color='#888a85'>=></font> <font color='#3465a4'>null</font>
<i>protected</i> 'numecheq' <font color='#888a85'>=></font> <font color='#3465a4'>null</font>
<i>protected</i> 'nparccred' <font color='#888a85'>=></font> <font color='#3465a4'>null</font>
<i>protected</i> 'dthoje' <font color='#888a85'>=></font>
<b>object</b>(<i>DateTime</i>)[<i>934</i>]
...
<i>protected</i> 'dtmov' <font color='#888a85'>=></font>
<b>object</b>(<i>DateTime</i>)[<i>935</i>]
...
<i>protected</i> 'cnbc' <font color='#888a85'>=></font> <small>int</small> <font color='#4e9a06'>1</font>
<i>protected</i> 'valtotmov' <font color='#888a85'>=></font> <small>float</small> <font color='#f57900'>2.5</font>
<i>protected</i> 'princ' <font color='#888a85'>=></font> <small>float</small> <font color='#f57900'>2.5</font>
<i>protected</i> 'ipincl' <font color='#888a85'>=></font> <small>string</small> <font color='#cc0000'>'::1'</font> <i>(length=3)</i>
<i>protected</i> 'dtincl' <font color='#888a85'>=></font>
<b>object</b>(<i>DateTime</i>)[<i>936</i>]
...
<i>protected</i> 'usuaincl' <font color='#888a85'>=></font> <small>string</small> <font color='#cc0000'>'USER '</font> <i>(length=10)</i>
<i>protected</i> 'sisincl' <font color='#888a85'>=></font> <small>string</small> <font color='#cc0000'>'NGM'</font> <i>(length=3)</i>
<i>protected</i> 'status' <font color='#888a85'>=></font> <small>string</small> <font color='#cc0000'>'I'</font> <i>(length=1)</i>
</pre>
这是预览的样子:
/path/to/source/Controller.php:28:array (size=1) 0 => object(Application\Entity\Reciimpr)[973] protected 'id' => int 72403 protected 'dtimp' => object(DateTime)[977] public 'date' => string '2017-09-25 00:00:00.000000' (length=26) public 'timezone_type' => int 3 public 'timezone' => string 'America/Sao_Paulo' (length=17) protected 'usuaimp' => string 'USER ' (length=10) protected 'ipmaquina' => string '::1 ' (length=15) protected 'nume' => int 33 protected 'sisimp' => string 'NGM' (length=3) protected 'ano' => int 2017 protected 'nvias' => int 0 protected 'mvfi' => object(Application\Entity\Movifina)[939] protected 'id' => int 290756 protected 'tpmv' => int 1 protected 'core' => object(DoctrineORMModule\Proxy\__CG__\Application\Entity\Rececont)[996] ... protected 'parc' => int 0 protected 'caixa' => boolean true protected 'fore' => object(DoctrineORMModule\Proxy\__CG__\Application\Entity\Formrece)[983] ... protected 'banco' => null protected 'agencia' => null protected 'conta' => null protected 'numecheq' => null protected 'nparccred' => null protected 'dthoje' => object(DateTime)[934] ... protected 'dtmov' => object(DateTime)[935] ... protected 'cnbc' => int 1 protected 'valtotmov' => float 2.5 protected 'princ' => float 2.5 protected 'ipincl' => string '::1' (length=3) protected 'dtincl' => object(DateTime)[936] ... protected 'usuaincl' => string 'USER ' (length=10) protected 'sisincl' => string 'NGM' (length=3) protected 'status' => string 'I' (length=1)
有谁知道为什么会这样?我已经尝试通过apt-get和pecl再次清除和安装它,两者都不成功。 :(
提前感谢您的帮助!