symfony: Dumps in commands don't display their location

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.

About this issue

  • Original URL
  • State: closed
  • Created 5 years ago
  • Reactions: 2
  • Comments: 19 (19 by maintainers)

Most upvoted comments

Maybe we could keep it collapsed by default, so it is unobtrusive, and allow to “expand” inks by setting an env var?

teaching + learning an env var is way harder than discovering the link…

Maybe we could keep it collapsed by default, so it is unobtrusive, and allow to “expand” inks by setting an env var?