Running a quarkus application with debug mode does not suspend the vm
See original GitHub issueWhen running a quarkus application with maven and the debug property as described in https://quarkus.io/guides/maven-tooling#debugging the vm does not wait for a debugger to attach.
Expected behavior The VM should be suspended until a debugger is attached.
Actual behavior The application starts without suspending the VM.
To Reproduce
- Create simple quarkus application:
mvn io.quarkus:quarkus-maven-plugin:0.24.0:create \
-DprojectGroupId=org.acme \
-DprojectArtifactId=getting-started \
-DclassName="org.acme.quickstart.GreetingResource" \
-Dpath="/hello"
- Run the application in dev mode with maven debug property:
./mvnw compile quarkus:dev -Ddebug=true
- Check is application is running:
wget localhost:8080/hello
Environment:
- Output of
uname -a
orver
:
Linux tmplcl-Virtual-Machine 5.0.0-31-generic #33-Ubuntu SMP Mon Sep 30 18:51:59 UTC 2019 x86_64 x86_64 x86_64 GNU/Linux
- Output of
java -version
:
openjdk version “1.8.0_222” OpenJDK Runtime Environment (build 1.8.0_222-20190711120915.buildslave.jdk8u-src-tar–b08) OpenJDK 64-Bit GraalVM CE 19.2.0.1 (build 25.222-b08-jvmci-19.2-b02, mixed mode)
- Quarkus version or git rev: 0.24.0
Additional context Same behaviour with OpenJDK: 11 and 13
Issue Analytics
- State:
- Created 4 years ago
- Comments:6 (6 by maintainers)
Top Results From Across the Web
Building applications with Maven - Quarkus
In development mode, Quarkus starts by default with debug mode enabled, listening to port 5005 without suspending the JVM. This behavior can be...
Read more >Chapter 12. Debugging your Quarkus project
When Quarkus starts in development mode, debugging is enabled by default. The debugger listens on port 5005 without suspending the JVM. Prerequisites.
Read more >Why does debugging Quarkus with Intellij fail? - Stack Overflow
I have tried two methods: Run -> Edit configurations -> Add new configuration (+) -> Quarkus Maven. As working directory I set my...
Read more >How to Setup Java Remote Debugging in Eclipse - Javarevisited
This will start java application stockTradingGUI into debug mode using Java ... is not running on debug mode you will get "Failed to...
Read more >JBoss Tools and Red Hat CodeReady Studio for Eclipse 2019 ...
You just need to open the Run → Debug Configurations…. menu and click on the Debug button. It will start the Quarkus application...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Yes, let’s at least have some documentation
Thanks everyone!