Does anyone know how to debug plugins using IntelliJ? I have seen several guides for eclipse. The only one I have found for IntelliJ is outdated and broken.
This is a little clunky but generally works for me when I need to use it (which is only occasionally). In IntelliJ, add a "Remote"-type run/debug configuration. Leave the default settings and copy the "Command line arguments for running remote JVM" and use them as an extra argument to the JVM in a debug startup script, which will look something like... Code: java -Xms512M -Xmx1024M \ -agentlib:jdwp=transport=dt_socket,address=5005,server=y,suspend=n \ -jar craftbukkit.jar Then run the startup script to start the server and run the configuration in IntelliJ to start debugging.