I found a way to debug JAVA from IntelliJ.
First you need to disable the idea runner. Disable the idea launcher by setting the idea.no.launcher to true.
#---------------------------------------------------------------------
# Configure if a special launcher should be used when running processes from within IDE.
# Using Launcher enables "soft exit" and "thread dump" features
#---------------------------------------------------------------------
idea.no.launcher=true
You might have to search for this setting. This setting is global and cannot be set per project, see also
http://devnet.jetbrains.net/docs/DOC-181 and
http://devnet.jetbrains.net/docs/DOC-197.
Restart your IntelliJ to reload the settings.
Create a new empty JAVA project with a src folder. Add a lib folder containing the vertx libraries and dependances.
In project structure add the vertx libraries to your project.
Set the scope of the vertx libraries as compile. They need to end up in your output folder.
Create a Server.java file containing the example source code from the vertx homepage.
Go to the Run/ Edit Configuration and create a new configuration based on Application.
The settings are:
Keep the main class empty.
Set the VM options (replace paths with your paths) :
-classpath /Users/someone/projectfolder/lib/* org.vertx.java.deploy.impl.cli.Starter run /Users/someone/projectfolder/src/Server.java -cp=/Users/someone/projectfolder/out/production/projectfolder/
Keep program arguments, Environment paths empty
Keep Working directory as it is.
Use the classpath of your project.
I just tested the HelloWorld application I could start and debug the application.
Greetings Rene