Very similar to this question, but not quite a duplicate (I think).
I have a Vert.x Verticle, which I run as described in the answer to the above question (i.e. by executing io.vertx.core.Launcher
with relevant arguments, but I'm trying to start the same thing in debug mode.
Elsewhere in answers to the above question, I've seen people recommending adding a main()
method to a Verticle and executing that in either run or debug mode, but I'd rather not add redundant code purely for this purpose.
The only option I can think of would be to start the Verticle as I am doing, but using the VM arguments to have it wait for a debugger, and then start a remote debug configuration in IntelliJ. That feels clumsy though; is there a better way?