From c39789dfde915a71d6b60754259dbc11caac20d1 Mon Sep 17 00:00:00 2001 From: dankito Date: Tue, 15 Oct 2024 02:28:04 +0200 Subject: [PATCH] Fixed only adding -Xdebug if debugger is attached --- fints4k/build.gradle | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/fints4k/build.gradle b/fints4k/build.gradle index d17580a2..fe28638c 100644 --- a/fints4k/build.gradle +++ b/fints4k/build.gradle @@ -13,6 +13,10 @@ kotlin { compilerOptions { // suppresses compiler warning: [EXPECT_ACTUAL_CLASSIFIERS_ARE_IN_BETA_WARNING] 'expect'/'actual' classes (including interfaces, objects, annotations, enums, and 'actual' typealiases) are in Beta. freeCompilerArgs.add("-Xexpect-actual-classes") + + if (System.getProperty("idea.debugger.dispatch.addr") != null) { + freeCompilerArgs.add("-Xdebug") + } }