Home > Enterprise >  Debugger failed to attach: handshake failed - received >GET /api/domai< - expected >JDWP-Ha
Debugger failed to attach: handshake failed - received >GET /api/domai< - expected >JDWP-Ha

Time:11-10

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.

enter image description here

Does anyone know how to solve this?

CodePudding user response:

The debug port is the port where you attach the remote debugger to.

Your remote debug config seems OK. What happens if you run it?

The API calls still need to go to port 8080. When you hit a breakpoint, you will see it in your debugger.

  • Related