kubejs-debug-adapter
What is this?
An implementation of Debug Adapter Protocol for working with KubeJS scripts, enabling direct code debugging within the game.
How to use?
To start working with the debugger, follow these steps:
- Install the Visual Studio Code extension called Debugger for KubeJS
- Add this mod to your Minecraft modpack
- Launch the game and wait for the dialog box to appear, awaiting debugger connections
- Open in VS Code the script that will be loaded by the game
- Set breakpoints at the desired locations in the code
- Press the
F5key and select theKubeJS Scriptsoption - Enter the port on which the debugger is listening and confirm the selection by pressing
Enter - Wait for the breakpoint to trigger and proceed with script debugging