Skip to content

Debug the Application documentation uses deprecated features #39388

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

Closed
craigmit opened this issue Feb 3, 2024 · 1 comment
Closed

Debug the Application documentation uses deprecated features #39388

craigmit opened this issue Feb 3, 2024 · 1 comment
Labels
status: superseded An issue that has been superseded by another

Comments

@craigmit
Copy link

craigmit commented Feb 3, 2024

The documentation on how to debug here: https://docs.spring.io/spring-boot/docs/current/maven-plugin/reference/htmlsingle/#run.examples.debug says to use:

<jvmArguments>
  -Xdebug -Xrunjdwp:transport=dt_socket,server=y,suspend=y,address=5005
</jvmArguments>

Since Java8, the -Xdebug support has been dropped. Ref: https://docs.oracle.com/javase/8/docs/technotes/tools/unix/java.html#BABHDABI

While it still works, the better way to do it is:

<jvmArguments>
  -agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=*:5005
</jvmArguments>

And via the command line:

$ mvn spring-boot:run -Dspring-boot.run.jvmArguments=-agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=*:5005

You also no longer need the quotes, so the "make sure to wrap that properly" comment can also be removed.

Cheers, and thanks for the awesome Spring Boot product!

@spring-projects-issues spring-projects-issues added the status: waiting-for-triage An issue we've not yet triaged label Feb 3, 2024
@philwebb philwebb added type: documentation A documentation update and removed status: waiting-for-triage An issue we've not yet triaged labels Feb 3, 2024
@philwebb philwebb added this to the 3.1.x milestone Feb 3, 2024
@scottfrederick
Copy link
Contributor

Closing in favor of #39392.

@scottfrederick scottfrederick closed this as not planned Won't fix, can't repro, duplicate, stale Feb 5, 2024
@scottfrederick scottfrederick added status: superseded An issue that has been superseded by another and removed type: documentation A documentation update labels Feb 5, 2024
@scottfrederick scottfrederick removed this from the 3.1.x milestone Feb 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
status: superseded An issue that has been superseded by another
Projects
None yet
Development

No branches or pull requests

4 participants