Add setup for Gradle debugging in VS Codium

This commit is contained in:
Tobi Schäfer 2024-06-15 14:59:33 +02:00
parent 6401300189
commit 3e5af064b0
Signed by: tobi
GPG key ID: 91FAE6FE2EBAC4C8
3 changed files with 119 additions and 83 deletions

View file

@ -290,3 +290,11 @@ task commandLine(type: JavaExec) {
mainClass = 'helma.main.launcher.Commandline'
args '-h', projectDir, function
}
tasks.register('debug', JavaExec) {
group = 'application'
main = 'helma.main.Server'
classpath = sourceSets.main.runtimeClasspath
jvmArgs = ['-agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=*:5005']
classpath += fileTree(dir: 'lib/ext', include: '*.jar')
}