Skip to content

Debugging tutorial is overcomplicated #806

Description

@XakepSDK

https://docs.spongepowered.org/stable/en/plugin/debugging.html
This tutorial is completely wrong! You don't need to clone any sponge source code to just debug, everything you need is server jar and your plugin jar, that's all!
Replace or remove it.

  1. Create new IDEA project or open existing
  2. Open 'project structure' window
  3. Click on 'artifacts' tab
  4. Add artifact with source from module
  5. Point artifact's build output directory to mods dir. of sponge installation
  6. Save
  7. Open 'run configurations' window
  8. Add new run configuration 'JAR Application (that should be in '+' dropbox)
  9. Point 'Path to jar' to your forge.jar or spongevanilla.jar
  10. Change 'Working directory' to a directory, where forge.jar or spongevanilla.jar located
    if you don't do this, your project directory will be littered with sponge/forge/minecraft files
  11. Open run configuration window again
  12. In bottom part of this window you will see '+', click on it and add your artifact
  13. Save
  14. Now you can run your plugin with debugging, just press green bug icon near launch button.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    input wantedWe would like to hear your opinionlow prioritySmall issues like typos that don't have much of an impact

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions