This is how you're getting your Vert.x Java code to run and debug into Eclipse IDE.
-
create a conf folder in your project, and put there the langs.properties file vertx needs to startup.
-
In maven, add vertx-lang-java dependency to your pom.xml. If you are not using maven or other build tools, just add a user library with all the jars that come with Vert.x distribution.
-
Then go to debug configurations and fill in the Main class as "org.vertx.java.deploy.impl.cli.Starter"
-
Setup the program arguments to something similar to what you would run to command line:
run com.example.MainVerticle -conf ${project_loc:/VertxProject}/configuration.json -cp ${project_loc:/VertxProject}/target/classes:/path/to/optional/other/jars"
And if you are not using JUL logging, add to the VM arguments the logging handler of you choice.