Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixes remote debug connections closing #1546

Merged
merged 3 commits into from
Jul 24, 2023
Merged

Conversation

jackcviers
Copy link
Contributor

sbt-native-packager Java App archetype remote debugging is broken when using -jvm-debug <port> in the docker entrypoint. It will start with -agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=<port>, which will terminate the connection prematurely.

Adding the * before the port will allow all remote connections to connect to the debugger port, which was the old default behavior.

See https://bugs.openjdk.org/browse/JDK-8175050

@muuki88
Copy link
Contributor

muuki88 commented Jul 24, 2023

Oh boy 😄 Thanks for fixing this. Will this break JDK 8 users (surely no one is still running this 😜 )

@muuki88 muuki88 merged commit 665e4e2 into sbt:master Jul 24, 2023
qwe2 added a commit to qwe2/sbt-native-packager that referenced this pull request Jan 22, 2025
muuki88 added a commit that referenced this pull request Feb 4, 2025
* Add bash and ash tests for the -jvm-debug and -h flags

* Add missing functions to the ash template

* replace bash syntax with ash compatible one

* Revert "Fixes remote debug connections closing (#1546)"

This reverts commit 665e4e2.

* fix sbt 2.0 cross-build for new tests

---------

Co-authored-by: Muki Seiler <muuki88@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants