title: How to execute multi-line statements within Python's own debugger (PDB)
body: <p>So I am running a Python script within which I am calling Python's debugger, PDB by writing:</p>
  
  <pre><code>import ipdb; ipdb.set_trace()
  </code></pre>
  
  <p>(iPython's version of PDB, though for the matter I don't think it makes a difference; I use it for the colored output only).</p>
  
  <p>Now, when I get to the debugger I want to execute a multi-line statement such as an if clause or a for loop but as soon as I type</p>
  
  <pre><code>if condition:
  </code></pre>
  
  <p>and hit the return key, I get the error message <code>*** SyntaxError: invalid syntax (&lt;stdin&gt;, line 1)</code></p>
  
  <p>How can one execute multi-line statements within PDB? If not possible is there a way around this to still executing an if clause or a for loop?</p>