用 google chrome 调试报错代码,如何格式化报错代码?

2017-11-02 17:12:33 +08:00
 MrMike

用的是 symfony 框架,之前用 firebug,更新 firefox 后,firebug 不工作了,换成 google chrome,但是在不能格式化代码,输出数组之类的,全部在一起的。

array:35 [ "block_name" => null "disabled" => false "label" => null "label_format" => null "translation_domain" => null "auto_initialize" => true "trim" => true "required" => true "property_path" => null "mapped" => true "by_reference" => true "inherit_data" => false "compound" => true "method" => "POST" "action" => "" "post_max_size_message" => "The uploaded file was too large. Please try to upload a smaller file." "error_mapping" => [] "invalid_message" => "This value is not valid." "invalid_message_parameters" => [] "allow_extra_fields" => false "extra_fields_message" => "This form should not contain extra fields." "csrf_protection" => true "csrf_field_name" => "_token" "csrf_message" => "The CSRF token is invalid. Please try to resubmit the form." "csrf_token_manager" => CsrfTokenManager {#265 -generator: UriSafeTokenGenerator {#304 -entropy: 256 } -storage: SessionTokenStorage {#267 -session: Session {#18 #storage: NativeSessionStorage {#154 #bags: array:2 [ "attributes" => AttributeBag {#171 -name: "attributes" -storageKey: "_sf2_attributes" #attributes: [] } "flashes" => FlashBag {#173 -name: "flashes" -flashes: []

如何格式化,方便阅读呢?我用的 symfony dump 函数打印的,js 报错也是这样的。

1714 次点击
所在节点    PHP
1 条回复
lyleo2010
2017-11-03 17:29:31 +08:00

这是一个专为移动设备优化的页面(即为了让你能够在 Google 搜索结果里秒开这个页面),如果你希望参与 V2EX 社区的讨论,你可以继续到 V2EX 上打开本讨论主题的完整版本。

https://www.v2ex.com/t/402998

V2EX 是创意工作者们的社区,是一个分享自己正在做的有趣事物、交流想法,可以遇见新朋友甚至新机会的地方。

V2EX is a community of developers, designers and creative people.

© 2021 V2EX