title: How to debug a Delphi application with redirected output
body: <p>I've got a console application that crashes with an I/O error 6 when the output is redirected to a file. It probably has something to do with the fact that the console application changes the text color, which doesn't make much sense in a file.</p>
  
  <ul>
  <li>This works: <code>c:\dir\app.exe</code></li>
  <li>This crashes: <code>c:\dir\app.exe &gt;out.txt</code></li>
  </ul>
  
  <p>When I supply <code>&gt;out.txt</code> as a parameter in the IDE (<code>run\parameters\parameters\</code>), I just get <code>&gt;out.txt</code> as a parameter. </p>
  
  <p>How can I debug the application with the stdout redirected to a file instead of the console?</p>