Skip to content
Branch: master
Find file History
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
..
Failed to load latest commit information.
src/main/java
Dockerfile
Jenkinsfile
README.md
pom.xml

README.md

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

Overview

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).

source repository

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:
        mvn package

Deploy and Run Rookout's Java Agent

  1. Download:

    $ curl -L "https://repository.sonatype.org/service/local/artifact/maven/redirect?r=central-proxy&g=com.rookout&a=rook&v=LATEST" -o rook.jar
    
  2. Run:

    java -javaagent:rook.jar -jar target/dropwizard-example-1.0-SNAPSHOT.jar server
    

Debug with Rookout's IDE

  1. Go to https://app.rookout.com and add your sources

  2. Add a Breakpoint at src/main/java/Resource.java : Line 12

  3. Trigger the Breakpoint by navigating to our HelloWorld route:

    http://localhost:8080/hello

For more information

Visit our online documentation: https://docs.rookout.com/

You can’t perform that action at this time.