https://pantsbuild.org/ logo
a

alert-dawn-51425

02/08/2023, 10:06 PM
Is there a command line argument to allow debugging of custom plugins?
e

enough-analyst-54434

02/08/2023, 10:14 PM
What do you mean by debugging? Up verbosity of logging or attaching a debugger?
a

alert-dawn-51425

02/08/2023, 10:14 PM
Attaching a debugger
e

enough-analyst-54434

02/08/2023, 10:16 PM
Both the
./pants
script and the
pants
binary (scie-pants) support
PANTS_DEBUG=1 pants --no-pantsd ...
That should halt on start and prompt you to connect at at port.
a

alert-dawn-51425

02/08/2023, 10:37 PM
I am confused how I would attach my plugin via debugpy, or am I attaching to the PID and the breakpoint would get hit?
b

bitter-ability-32190

02/08/2023, 10:47 PM
Debugpy
3 Views