title: Symfony Console: how to show line number when error/exception/warning occurs
body: <p>When running Symfony Console applications and an error/exception/warning occurs, such as:</p>
  
  <blockquote>
    <p>[Symfony\Component\Debug\Exception\ContextErrorException]<br>
      Warning: Invalid argument supplied for foreach()           </p>
  </blockquote>
  
  <p>it does not show the line number where the problem is, so it's difficult to locate.</p>
  
  <p>Is there a way to show it?</p>