Suspend capturemanager before set_trace

I just copied the code from `_pytest.pdb`.