rhythmic-morning-87313
08/06/2022, 5:44 AMgdb
and/or valgrind
to the test process when running ./pants test
? Is there any recommended way?rhythmic-morning-87313
08/06/2022, 5:45 AMrhythmic-morning-87313
08/06/2022, 5:49 AMgdb --args ./pants test --debug ...
does not work because pants
is a script not an executable (obviously!)rhythmic-morning-87313
08/06/2022, 5:50 AM./pants
script detects and selects, and mimic all the arguments passed to it, but I think this will be just the pants itself not the Python process that actually runs pytest.rhythmic-morning-87313
08/06/2022, 5:50 AMgdb
or valgrind
when running a specific target.rhythmic-morning-87313
08/06/2022, 6:08 AMbitter-ability-32190
08/06/2022, 10:39 AMtest
and run
now have --debug-adapter
flag which if supported launches the relevant debug adapter. In this case though it's be launching the Python one, and not a native one (although that support could be added, but less useful in most cases)
• You probably wanna run ./pants --no-proccess-cleanup test --force ...
And use the sandbox to run gdb ...
fast-nail-55400
08/09/2022, 8:10 PM