How to pdb Python code with input?
<p>I'm debugging Python code with pdb.
The code need input from stdin, like:</p>

<pre><code>python -m pdb foo.py &lt; bar.in
</code></pre>

<p>Then the pdb will accept the bar.in as commands.
How to tell pdb that the input is for foo.py and not for pdb?</p>
