How to check if tests are started in debug-mode from Intellij inside Gradle-Script

Viewed 379

Inside my Gradle-script I want to check if the tests are started in debug mode by Intellij Idea.

I've already tried the following:

How can I find out if Intellij started the tests in debug mode?

It could be something like detecting if --debug-jvm isset, but as of now, I cannot find the process which starts the tasks. (I've tried something like ps aux | grep test which got me no results)

0 Answers
Related