https://kotlinlang.org logo
#kotless
Title
# kotless
h

Hakon Grotte

02/09/2022, 1:38 PM
Has anyone managed to debug kotless' Gradle task "local" with IntelliJ breakpoints? I have attempted to run with jvmarg
-agentlib:jdwp=transport=dt_socket,server=y,suspend=y,address=*:5005
on jvm target 11, and subsequently my Remove JVM debug manages to connect, loggint the following message:
Connected to the target VM, address: 'localhost:5005', transport: 'socket'
. When I attempt to run my route endpoints IntelliJ does not stop on my breakpoints
Additional information: Kotlin jvm v 1.6.10, kotless 0.2.0, ktor-lang and ktor-lang-aws
Local task:
Copy code
> Task :local
14:31:57.875 [main] INFO  io.kotless.dsl.ktor.KotlessAWS - Autoreload is disabled because the development mode is off.
14:31:57.898 [main] INFO  ktor.application - Autoreload is disabled because the development mode is off.
14:31:59.116 [main] INFO  ktor.application - Responding at <http://0.0.0.0:8080>
14:31:59.116 [main] INFO  ktor.application - Application started: io.ktor.application.Application@6325f352
Remote JVM debugger:
Copy code
Connected to the target VM, address: 'localhost:5005', transport: 'socket'
t

TanVD

02/09/2022, 1:54 PM
Have you tried running debug Gradle task local?)
h

Hakon Grotte

02/09/2022, 1:58 PM
I think so: I am running the kotless' local task in IntelliJ. The agent command is passed through `gradle.properties`file:
Copy code
org.gradle.daemon=true
org.gradle.jvmargs=-agentlib:jdwp=transport=dt_socket,server=y,suspend=y,address=*:5005
Or did I misinterpret your suggestion?
message has been deleted
RemoteJvmDebug config
PS: I am on Windows 10
t

TanVD

02/09/2022, 3:34 PM
Hm, probably it does not work on Windows right now 😞
h

Hakon Grotte

02/09/2022, 3:36 PM
I understand, thank you for replying! Are you developing on Linux or MacOS? I might consider downloading Ubuntu and abandon Windows
3 Views