Issue
I am trying to debug a basic Quarkus app by running the command ./mvnw compile quarkus:dev
on IntelliJ (as stated in the Quarkus docs) and it seems to run ok (gives me the following message: Listening for transport dt_socket at address: 5005
)
I can call the APIs on port 8080 and all fine but when I try to call the same API on port 5005 I get the following error Debugger failed to attach: handshake failed - received >GET /api/domai< - expected >JDWP-Handshake<
.
I tried configuring a Remote Debug configuration as shown in the image but doesn't seem to work.
Does anyone know how to solve this?
Solution
One process can listen on multiple TCP/IP sockets for multiple things.
The debug port is the port where you attach the remote debugger to.
The API calls still need to go to port 8080, though. When you hit a breakpoint, you will see it in your debugger.
Answered By - GeertPt
Answer Checked By - David Goodson (JavaFixing Volunteer)