PyCharm: how to do post mortem debugging in the ipython interactive console? : <p>I've just started using the nice PyCharm community edition IDE, and can't do a simple thing that is part of my usual Python workflow.</p>

<p>I've started an ipython console and I can import my modules and interactively run commands. In PyCharm when I execute a function call, it is executed like it was running in a separate process. The console prompt can be used even before the execution finishes. Running ipython in a shell outside PyCharm, when an exception happens, I can run pdb's post mortem feature and investigate the problem:</p>

<pre><code>import pdb;pdb.pm()
</code></pre>

<p>I want to do the same in PyCharm: start post mortem debugging when an exception happens while I'm interactively investigating a problem. </p>
