Debug a DropWizard app using Rookout
A sample app for debugging DropWizard using Rookout.
Before following this guide we recommend reading the basic [Java + Rookout] guide
The entire app is only two Java files and a pom.xml. The Java files are split into the application (with the main method) and the resource (i.e. the routes).
Setting Up The Application
To test the example application run the following commands:
- To create the example, package the application using Apache Maven from the root dropwizard directory, run:
Deploy and Run Rookout's Java Agent
$ curl -L "https://repository.sonatype.org/service/local/artifact/maven/redirect?r=central-proxy&g=com.rookout&a=rook&v=LATEST" -o rook.jar
java -javaagent:rook.jar -jar target/dropwizard-example-1.0-SNAPSHOT.jar server
Debug with Rookout's IDE
Go to https://app.rookout.com and add your sources
Add a Breakpoint at src/main/java/Resource.java : Line 12
Trigger the Breakpoint by navigating to our HelloWorld route:
For more information
Visit our online documentation: https://docs.rookout.com/