entr is a glitchy mess that keeps restarting for no reason and prevents pdb usage due to stdin takeover, use a python script instead that doesn't need external utilities.