John
John

Reputation: 13

What's the easier way to debug a Minecraft plugin?

Every time I have an error with my Minecraft plugin I have to do a lot of broadcast messages before the code lines to detect the error line.

Is there an easier way to debug and fix errors for a Minecraft plugin? (I'm using IntelliJ idk if this may help)

Upvotes: 0

Views: 702

Answers (1)

Gerolmed
Gerolmed

Reputation: 403

How about the normal Java debugger? 2 simple ways are

  1. If you start the server with debug mode than you can create a run config (in IntelliJ) to connect to the debug port
  2. Which I personaly recommend is to just run the jar through an intellij run configuration. There is one for jar files. Just dont forget to specify the flags you use when starting it normally.

Upvotes: 1

Related Questions