Debug test cases via TestLauncher from Gradle Tooling API

TestLauncher has api to start debug a test debug session: TestLauncher (Gradle API 8.9)

According to the document, server=n is used as jdwp arguments. What if I want to set server=y?

I tried to add -agentlib:jdwp=transport=dt_socket,server=y,suspend=y,address=xx to the jvmArgs, but it doesn’t work.