How can I drop into pdb inside a funcargs function? And how can I see output from print statements in funcargs functions?
My original question included the following, but it turns out I was simply instrumenting the wrong funcarg. Sigh.
I tried:
print "hi from inside funcargs"invoking with and without -s.
I tried:
import pytest pytest.set_trace()And:
import pdb pdb.set_trace()And:
raise "hi from inside funcargs"None produced any output or caused a test failure.
To debug a funcarg:
Then:
As Ronny answered, to see output from a funcarg,
pytest -sworks.