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.

quarkus:dev's debugHost not configurable

See original GitHub issue

We are running development environments and tools in containers and trying to separate responsibilities not only in separate containers (and also pods, so colocation is not really a solution). One of the ideas was separate IDE pods from the actual application (quarkus-based, in this occasion) being in development. The challenge for us is, to make relevant ports from the application in development available at least to the IDE container.

When running mvn quarkus:dev, application’s port is only bound to loopback interface, which is luckily configurable e.g. via enviroment variable QUARKUS_HTTP_HOST=0.0.0.0. The same problem applies to other ports like the debug port, which is opened by the maven plugin. Unfortunately it looks like there is currently no way to change this configuration, even though most of the code to do so is already there (have a look at io.quarkus.maven.DevMojo#debugHost).

Expected behavior When running mvn quarkus:dev debug port is bound to 127.0.0.1 by default, but is configurable somehow.

Actual behavior Running mvn quarkus:dev debug port is bound to 127.0.0.1 and not configurable.

To Reproduce Without containering: Start any quarkus application using mvn quarkus:dev and from the same machine try to connect to it using jdb -attach $(hostname):5005. jdb -attach localhost:5005 is working fine for reference.

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:10 (7 by maintainers)

github_iconTop GitHub Comments

2reactions
stuartwdouglascommented, Jan 20, 2021

You should be able to do mvn quarkus:dev -DdebugHost=0.0.0.0

0reactions
geoandcommented, Jan 20, 2021

#14432 fixes the issue

Read more comments on GitHub >

github_iconTop Results From Across the Web

Building Quarkus apps with Gradle
If you are not familiar with Quarkus configuration profiles, ... By default, quarkusDev sets the debug host to localhost (for security reasons).
Read more >
quarkusio change default debug port using quarkus:dev
Exist some way to change the default debug port in quarkus? PD: I just try -Dquarkus.debug.port=5006, but nothing happens... Thanks.
Read more >
chore(deps): update dependency io.quarkus:quarkus ... - GitLab
... #​23322 - Set quarkusDev configuration in quarkusRemoteDev task; #​23321 - Let the ByteBuddy ... #​14403 - quarkus:dev's debugHost not configurable ...
Read more >
Quarkus latest version - Awesome Java
ProcessingException: RESTEASY003215: could not find writer for ... #13653 - uberJar may appear to be ignored in Quarkus Maven plugin configuration ...
Read more >
SSIS Debug Host has stopped working - ODBC Source - MSDN
Another possible reason is the data type and length may be not available for the columns. Since the error doesn't come when the...
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