<p>ipdb can also be used when debugging issues with environments other than your local one. <code>ipdb.runcall</code> helps one debug issues on method calls through and IPython shell, and it's as simple as:</p>
<p>```</p>
<blockquote>
<blockquote>
<blockquote>
<p>import ipdb
import xpto_method # the method one wants to debug
ipdb.runcall(xpto_method, 'method arg')
(ipdb) ...
```</p>
</blockquote>
</blockquote>
</blockquote>
<p><code>ipdb.runcall</code> receives the method one wants to call as the first argument, and subsequent to that the target method arguments.</p>
<p>For more usage examples, check: </p>