Hi all. Is there a way to get pants to use `PYTHON...
# general
s
Hi all. Is there a way to get pants to use
PYTHONBREAKPOINT
to choose debugger? I have tried setting it in various places but even when the value is set in the sandbox, I still get the default
pdb
debugger:
Copy code
(Pdb) os.getenv("PYTHONBREAKPOINT")
'ipdb.set_trace'
b
Sorry for the trouble. What context are you trying to set use a debugger? Running tests, or something else?
s
Hi Huon, I am running tests. Would be nice to use ipdb when executing an arbitrary
pants run
command but tests are the priority.
b
Ah okay. I think a good way to understand what part of the system isn't working as hoped is to look into the sandbox: https://www.pantsbuild.org/2.21/docs/using-pants/troubleshooting-common-issues#debug-tip-inspect-the-sandbox-with---keep-sandboxes That strips away the pants layers and lets you play around with the
__run.sh
script to understand what's working and what's not, and potentially translate that back into the right config.