Using Eclipse debugging features (breakpoints etc.) for Dropwizard server development

Viewed 1841

I am currently evaluating the Dropwizard framework for one of my personal projects. My intention is to use the Eclipse IDE for development. I've followed Dropwizard's "Getting Started" guide to successfully set up the basic 'Hello Stranger!' web service. My question is pretty basic but I haven't found any documentation/pointers so far and so here it goes...

How can I set up my dropwizard maven project so that I can set breakpoints (say, inside HelloWorldResource's sayHello method) and inspect/watch values of variables etc.?

I have created a debug configuration by specifying a Main class and setting "server hello-world.yml" as the Argument. When I try to debug, the service is started and works as expected but I am unable to set breakpoints or follow control flow.

1 Answers
Related