4
votes

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?

1

1 Answers

5
votes

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