Skip to content

make HtmlDumper output more developer friendly #49754

@Jimbolino

Description

@Jimbolino

Description

The dd() helper is really useful for us developers
However, every time i am debugging a json api call, or when i do a view-source: or curl
I have to replace my dd() with var_dump() + die(), because the output starts with a bunch of static javascript.

Example

A simple solution to this is begin the output with a html comment like this:

<!-- var_dump($data) -->

This way the dumped data is always in a developer friendly version at the top of the file.

Screenshot of the "issue" that im trying to solve :)

image

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions