title: Debug a Python script with sys.stdin in WingIDE
body: <p>In command line, i run my script as follows:</p>
  
  <pre><code>cat sample.log | python -B main.py logsource
  </code></pre>
  
  <p>How do i debug the main.py and provide:</p>
  
  <ul>
  <li>sample.log as <code>sys.stdin</code></li>
  <li><code>-B</code> for python</li>
  <li><code>logsource</code> as input parameter (<code>sys.argv[1]</code>)</li>
  </ul>
  
  <p>I'm using Python 3 if it matters.</p>