Reputation: 61744
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
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