powerful-eye-58407
06/06/2023, 2:00 PM--debug
option:
IntrinsicError: Only local environments support running processes interactively, but a docker environment was used.
We run our tests in ubuntu-based docker container using pants environments feature (we have some os-related dependencies we need at runtime, and also part of our team does development on Mac).
What are my options to debug any tests using pants in that case? Has anyone worked around this or created some plugin for it?powerful-eye-58407
06/06/2023, 2:01 PMdocker run -it /bin/bash
with our code mounted to the container, and then running pytest manually on single test, with pdb debugger or something more advanced if needed.powerful-eye-58407
06/06/2023, 2:01 PMbroad-processor-92400
06/06/2023, 8:17 PMpowerful-eye-58407
06/07/2023, 7:50 AM