Skip to content

Latest commit

 

History

History
55 lines (42 loc) · 1.63 KB

README.md

File metadata and controls

55 lines (42 loc) · 1.63 KB

MindustryDebugPlugin

Maven plugin for Mindustry

RoadMap

  • Add debug template for editors (Ready for Visual Studio Code)

Conditionality

  • Instead of mvn can be used
    • Windows: .\\mvnw.cmd, .\\mvnw
    • U*ix: ./mvnw.sh

Installing

add this to pom.xml file

<build>
    <plugins>
        <plugin>
            <groupId>io.github.SSTentacleSS.mindustry</groupId>
            <artifactId>mindustry-maven-plugin</artifactId>
            <version>1.3</version>
            <configuration>
                <mindustryVersion>${mindustryVersion}</mindustryVersion> <!-- Required, debug mindustry version -->
                <pluginJars>
                    <jar>target/${finalName}.jar</jar>
                </pluginJars> <!-- Required, path to debug plugin jar -->

                <suspend>false</suspend> <!-- Will the debugger wait for your connection? default false -->
                <debugPort>8000</debugPort> <!-- Debug port, default 8000 -->
                <force>false</force> <!-- Force the plugin to download the server assembly again, default false -->

                <args> <!-- Args for mindustry server -->
                    <arg>args1</arg>
                    <arg>args2</arg>
                    <arg>args3</arg>
                </args>
            </configuration>
        </plugin>
    </plugins>
</build>

Integrating with editors:

  • Visual Studio Code
    1. run mvn mindustry:generate-config -Deditor=vscode
    2. Use Run and Debug -> ♿ Build and Debug
  • Support for other code editors is planned, I will be glad for any help on this matter

Debugging

run mvn mindustry:debug