Debugging

How to debug the addon

It's simple to debug your created addon in your IDE. You just have to edit the created run configuration of Forge (which starts the client) and put the following VM start options in:

1
-Dfml.coreMods.load=net.labymod.core.asm.LabyModCoreMod -DdebugMode=ALL -Daddonresources=addon.json

Tip

You can separate multiple debug modes with a comma.
Example:
-DdebugMode=ADDON,TEAMSPEAK

Available debug modes

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
ADDON
API
UPDATER
CAPE_MANAGER
USER_MANAGER
MINECRAFT
TEAMSPEAK
LABYMOD_CHAT
ACCOUNT_MANAGER
SPOTIFY
CONFIG_MANAGER
ASM
PLUGINMESSAGE
GENERAL
LANGUAGE
CCP

ALL
CONSOLE

Testing the addon's settings

You can test your addon's settings by navigating to LabyMod Settings → Addons → Installed.

Screenshot of Addon Settings