I have a python script that reads stdin via a pipe, and I cannot seem to use it with pdb.set_trace().
my_script.py:
#!/usr/bin/env python import sy
Using the ripdb module (pip install ripdb) solved this issue for me.
pip install ripdb