javaclasspathdropwizarddefault-package

How to run Dropwizard app in debug mode with Eclipse?


I'm looking to run my Dropwizard 0.8.5 app in debug mode whereby:


For the server debug mode:

Typically my DW app runs from the command-line like so:

java -jar build/libs/myapp.jar server src/test/resources/myapp-local.yml

So what are the command-line args to get this running in debug mode (JPDA), or what are the modifications to myapp-local.yml needed to accomplish this?


For Eclipse/JPDA Client

I assume I just set breakpoints and then create a new Debug Configuration inside Eclipse, but not sure what arguments/configs to set this Configuration up with. Any ideas?


Solution

  • Just run the main class (the one that extends Application<T>) in debug mode. You will need to set the program parameters as "server src/test/resources/myapp-local.yml" in your run configurations.