question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Running a quarkus application with debug mode does not suspend the vm

See original GitHub issue

When 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

  1. 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"
  1. Run the application in dev mode with maven debug property:
./mvnw compile quarkus:dev -Ddebug=true
  1. Check is application is running:
wget localhost:8080/hello

Environment:

  • Output of uname -a or ver:

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:closed
  • Created 4 years ago
  • Comments:6 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
geoandcommented, Oct 13, 2019

Yes, let’s at least have some documentation

0reactions
gsmetcommented, Oct 16, 2019

Thanks everyone!

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found