Use ipdb instead of pdb with py.test --pdb option
<p>I want to use <a href="https://pypi.python.org/pypi/ipdb" rel="nofollow">ipdb</a> instead of <a href="https://docs.python.org/2/library/pdb.html" rel="nofollow">pdb</a> with <a href="http://docs.pytest.org/en/latest/contents.html" rel="nofollow">py.test --pdb</a> option. Is this possible? If so, how?</p>

<p>Clearly, I can use <code>import ipdb; ipdb.set_trace()</code> in the code but that requires to run the test, watch it fail, open a file, find the point of failure in said file, write the above line, re-run the tests. Lots of hassle if I could have something that by passes all of that.</p>

<p>Have you tried <a href="https://github.com/mverteuil/pytest-ipdb" rel="nofollow">pytest-ipdb</a>?</p>

<p>Looks like it's exactly what you are looking for?</p>

python py.test pdb ipdb