2

Hello as some of you already saw the new Fleet IDE from JetBrains has been released and I was curious to try it and learn more. I'm not sure if this is the best place to ask this question but I can't find how to debug a quarkus application without the main function. Fleet provides you with the maven commands and it runs quarkus on dev mode correctly but the debugger does not work. I have searched on how to attach a debugger on port 5005 but I don't seem to find anything that solved my problem. If anyone knows how to attach the debugger on port 5005 in Fleet let me know.

Makoto
  • 104,088
  • 27
  • 192
  • 230
Theodosis
  • 792
  • 2
  • 7
  • 22
  • Quarkus automatically enables debugging in dev-mode but only for `localhost`. Can you try running `mvn quarkus:dev -DdebugHost=*`? – geoand Oct 14 '22 at 14:42
  • Hello, see my answer. And please, could you remove fleet tag on your question ? It doesn't refer to Jetbrains's IDE Fleet. Thanks ! – Jacouille Oct 14 '22 at 15:46

1 Answers1

2

I think we have 2 ways we can try to achieve this.

You can either launch your run configuration as "Run and Debug", or attach manually debugger.

First method Run and Debug

Go to your Action panel, then type "run & debug"

Action Panel

Once open, you just have to select your usual run config

Run Debug Panel

Second method manual Attach

Go to your Action panel, then search for "attach to process"

enter image description here

It'll open panel where you can manually type, or select from the list, the one you need to debug

Hope this helps !

Jacouille
  • 951
  • 8
  • 14
  • Can you actually add this on the configuration so that when you press run and the maven command autoruns the quarkus application on dev mode the debugger also attaches? – Theodosis Oct 17 '22 at 07:07
  • Unfortunately, I have not found anything that indicate we can do this at the moment. It may be added in next releases. – Jacouille Oct 17 '22 at 07:40
  • Can you reload classes in attach mode of debugger? – AhmedRana Oct 31 '22 at 13:26