Debug plugin (Eclipse)?

Discussion in 'Plugin Development' started by FisheyLP, May 14, 2015.

Thread Status:
Not open for further replies.
  1. With debugging, I don't mean printing out some messages, I mean the built in debugger from Eclipse.
    Is there any way to use this for plugins?
     
  2. Nope.
     
  3. Offline

    Zombie_Striker

    The Debug tool for eclipse can only by used by enclipse. Those two types of debugging (eclipses and actual debugging) are two different things.
     
  4. Offline

    Timbals

  5. @Timbals THANKS! Exactly what I've looked for :)
    EDIT: It doesn't work.
    [​IMG]
     
    Last edited: May 14, 2015
  6. Offline

    Zombie_Striker

    @FisheyLP Just put in the debugging methods manually. That program just automaticly puts in the sendmessage into the code. If you do manually, you can easy set it to print out exactly what you want.
     
  7. But with the built in debugger I could view all variables at runtime and even change the code and it updates automatically
     
  8. Offline

    Timbals

    @FisheyLP Still not working? You have to create a new launch configuration (button is topleft) (blanc paper with yellow plus)
     
  9. Offline

    mythbusterma

    BEEEP. Wrong. Java has had support for a remote debugger to attach to a process since I can remember, why is a Bukkit server any different?

    @FisheyLP

    Yes, it will work. Your set up must be incorrect. Are you certain they have the same ports? Also, make sure you launch the server with the following JVM arguments:

    -Xdebug -Xrunjdwp:transport=dt_socket,address=1000,server=y,suspend=n

    (or whatever port you desire, just make sure nothing else is using it)
     
  10. @mythbusterma I did this from the tutorial @Timbals sent me, but when I click on Remote Java Application in the debug configuration, this appears:
    [​IMG]
    But this should appear (in the tutorial):
    [​IMG]
     
  11. Offline

    Timbals

    @FisheyLP
    You have to press this button and then follow the tutorial.
    [​IMG]
     
Thread Status:
Not open for further replies.

Share This Page