scala-cli icon indicating copy to clipboard operation
scala-cli copied to clipboard

Options to make remote debugging easier

Open romanowski opened this issue 2 years ago • 0 comments

Is your feature request related to a problem? Please describe.

Providing options for remote debugging (that is really powerful) is not always intuitive or even may not be possible (if you want to debug a compiler).

Describe the solution you'd like

I would like that Scala CLI expose --debug and --debug-compiler that accepts a port to debug (or use 8080 or some other default one if no argument is provided). It should also accept a flag (e.g. 8080:listen) to indicate if listen/attached mode should be used.

Describe alternatives you've considered

Providing full debug option (e.g. -agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=8000) as jvm arguments.

romanowski avatar Jul 28 '22 14:07 romanowski