Skip to content

Add Symfony Var_dumper globally for better debugging tool #34

Open
@lesaff

Description

@lesaff

Short description of the enhancement

I'd like to suggest adding Symfony Var_dumper globally, in the standard Processwire install. Var_dumper will help us developers and module authors alike to debug variables/objects output.

Current vs. suggested behavior

Currently, we use var_dump($var) to output variables/object for debugging purpose.
Once Symfony Dumper is added, we can use dump($var) to achieve the same task.

Why would the enhancement be useful to users?

Symfony Var_dumper will format arrays and objects and make them prettier and easier to read. I think developers and module authors will enjoy this addition.

Optional: Screenshots/Links that demonstrate the enhancement

Output using Symfony Var_dumper
screen shot 2016-10-12 at 10 58 57 am

Output using PHP's var_dump()
screen shot 2016-10-12 at 11 02 11 am

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