Skip to content

Dumps in commands don't display their location #34256

@javiereguiluz

Description

@javiereguiluz

Symfony version(s) affected: 4.4

Description
In #31446 we added a feature to show the file path and line number where the dump() or dd() call was made inside a command. However, I cannot make it work.

How to reproduce

# create a 4.4 project
$ symfony new test_dumper --full --version=4.4.x-dev

# create a command
$ php bin/console make:command app:test-dumper

# edit the command file and add dd() or dump() somewhere

# run the command
$ php bin/console app:test-dumper

This is what I see:

image

The output is the same as in the previous Symfony versions, so this feature is not working as expected.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions