Laravel漂亮的var_dump(),dd(),不再工作了 [英] Laravel's pretty var_dump(), dd(), not working anymore
问题描述
出于某种原因,laravel的 dd()
函数决定停止运行.我不知道这是怎么发生的.我已经尝试过 composer update
,但是我不确定还能发生什么.在配置中,将 debug
键设置为 true
.
For some reason laravel's dd()
function decided to stop functioning. I have no idea how this happened. I tried composer update
already but I'm not sure what else can be going on. The debug
key is set to true
in the config.
我应该在哪里解决这个问题?我正在使用Laravel 4.2.16
Where should I look to solve this problem? I'm using Laravel 4.2.16
注意:现在 dd()
可以简单地用作 var_dump()
,不再修饰它
NOTE:
dd()
now simply functions as var_dump()
, it doesn't prettify it anymore
推荐答案
已解决.我用错误的配置加载了无业游民的计算机,并且正在运行hhvm而不是常规的php-fpm.因此,未加载处理漂亮的 dd()
的xdebug.我用正确的设置(没有hhvm和hack)重新加载了我的盒子,一切又开始正常工作
Solved it. I loaded my vagrant machine with the wrong config and was running hhvm instead of regular php-fpm. Hence xdebug, which handles the pretty dd()
, was not being loaded. I reloaded my box with the correct settings (without hhvm and hack) and everything started working again
这篇关于Laravel漂亮的var_dump(),dd(),不再工作了的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!