为什么我的调试数据未格式化? [英] Why is my debug data unformatted?

查看:58
本文介绍了为什么我的调试数据未格式化?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

var_dumpprint_r的显示未格式化.如何格式化数据以提高可读性?

var_dump and print_r are displayed are not formatted when using Laravel 4. How do I format the data to be more readable?

推荐答案

通过在命令行中运行以下命令将Kint添加到composer.json:

Add Kint to your composer.json by running this on the command line:

composer require raveren/kint "dev-master"

然后尝试:

dd( new Controller );

您应该看到以下内容:

更好吧?

这篇关于为什么我的调试数据未格式化?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆