[Tutorial] Debug Plugins In Eclipse (Easy)

Discussion in 'Resources' started by mattrick, Nov 24, 2013.

Thread Status:
Not open for further replies.
  1. Offline

    mattrick

    Hi there! This is my first tutorial, so bear with me.

    Anyway to start off, here are some things you'll need:

    - CraftBukkit Server Jar
    - Batch/ Shell script to run server
    - Eclipse

    To start off, open the External Tools Configurations dialog (Click the play button with a toolbox on it). Click "Program" on the right side of the window. Click the New Launch Configuration Button above the list on the right. Under the "Main" tab, and where it says "Location", choose the "Browse File System..." button. In the dialog, choose your startup script. Now, under the Working Directory section, choose "Browse File System..." navigate to the folder that your startup script lives in.

    Now all you have to do is export your plugin to the server's plugins folder and click the External Tools Run Button. A problem is that you cannot enter commands directly to the console, you need to use a client to execute commands. Other than that, you have a fully functional Bukkit Server inside Eclipse!
     
  2. Offline

    dmoney12321

    Thanks. Been looking for this.
     
  3. Offline

    AnUnknownMiner

    This is really cool, thanks for the tutorial!
     
  4. Offline

    chrisman0091

    This will save me a ton of time, thanks for the tutorial! Maybe some pictures for others?:)
     
  5. Offline

    rmcooke

    Thanks. I was having bootloader issues and this helped me out a ton.
     
  6. Offline

    hugokk

    I just have something to add, you can export your plugin file right into the plugin folder, even when the server is on, which isn't possible when copying. You will replace the old file, and when you reload the server it will just work fine.
     
  7. Offline

    mazentheamazin

    Eww Eclipse
     
  8. Offline

    ArthurMaker


    Seriously?
     
Thread Status:
Not open for further replies.

Share This Page