Armel caught up with Phillip Kruger from Red Hat to discuss GraphQL for Microservices architecture. Phillip is the lead contributor for Microprofile GraphQL and the Quarkus integration from Red Hat.
As part of the quick tips series, I will show how you can debug Quarkus microservices using Netbeans. This quick tips work for any Java applications running either through Maven or in standalone.
Here is the commands to debug your application when running through Maven. The default debug port is 5005.
./mvnw compile quarkus:dev -Dagentlib:jdwp=transport=dt_socket,server=y,suspend=n
Here is the command to debug your application when executing through the jar command.
# start application in debug: example java -agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=9009 -jar <your-application.jar>
I hope this was helpful. Stay tune for more quick tips.