fwcd / fwcd/kotlin-debug-adapter

Pass launch arguments. Pass JVM -D??? args.

Open
#16 4 comments 0 reactions 0 assignees View on GitHub
enhancement
Dominant language
Kotlin
Stars
150
Forks
29
PR merge metrics
No merged PRs in 30d

Description

Triying do debug [Dropwizard](https://www.dropwizard.io/) project.
It supposed to be launched with command line args like this: `java -jar ???.jar server config.yml`.
So when launched I need to pass args `server config.yml`. From launch.json sample I don't see how is it possible. Also looking at [source](https://github.com/fwcd/KotlinDebugAdapter/blob/master/src/main/kotlin/fwcd/ktda/adapter/KotlinDebugAdapter.kt) I don't see it either.

Also sometimes there's need to pass jvm args like this
`-Dlogback.configurationFile=/path/to/logback.xml`

How can it be done?

Contributor guide

No contributing guide indexed for this repository

Research direction

Start with the launch.json sample and the KotlinDebugAdapter.kt source linked in the issue to trace how launch configuration arguments are handled. Reproduce a Dropwizard-style launch using `server config.yml` and the JVM property example, then verify that both argument types reach the launched process.

Written by the indexing model from the issue text.

Assessment

Tech stack
java, kotlin
Domain
devtools
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.