Automatically disable capturing when pdb.set_trace() is called

Issue #126 resolved
Antonio Cuni
created an issue

Currently, if I have a pdb.set_trace() call in my code and run py.test without -s, I get an IOError instead of the pdb prompt.

Comments (1)

  1. Holger Krekel repo owner

    fix issue126 : introduce py.test.set_trace() to allow dropping to interactive debugging even when py.test is configured to capture output. If you like you can override pdb.set_trace by default like this:

    1. content of conftest.py def pytest_configure(): import py, pdb pdb.set_trace = py.test.set_trace

    1d7b0838917f

  2. Log in to comment