Francesco Borzi
Francesco Borzi

Reputation: 61744

Symfony Console: how to show line number when error/exception/warning occurs

When running Symfony Console applications and an error/exception/warning occurs, such as:

[Symfony\Component\Debug\Exception\ContextErrorException]
Warning: Invalid argument supplied for foreach()

it does not show the line number where the problem is, so it's difficult to locate.

Is there a way to show it?

Upvotes: 4

Views: 1806

Answers (1)

Francesco Borzi
Francesco Borzi

Reputation: 61744

The solution is to run the command using -v or -vv or -vvv option. Those options specify different levels of verbosity.

Upvotes: 5

Related Questions