Skip to content

Latest commit

 

History

History
37 lines (22 loc) · 1.77 KB

debugging.md

File metadata and controls

37 lines (22 loc) · 1.77 KB

How to debug your plugins

Plugin Debugging currently only works when using Latite on Minecraft versions below 1.19.50 (Latite currently only supports 1.18.10-1.18.12 for plugin debugging). Additionally, some JavaScript features will be lost when using Latite Scripting on these versions.

Prerequisites

To enable JIT debugging, go to Visual Studio Installer and make sure Just-in-Time option is enabled from Individual Components

Launch Visual Studio.

Click Continue without Code, then go to the Debug tab

Then launch Minecraft. Select Attach to Process below:

in Attach To: click the Select button, then select Script.

Then, this will show up. Type Minecraft.Windows.exe in the textbox below, select the first option that shows up, then click the Attach button.

Then load your plugin using .plugin load

your plugin's files will show up on the right side of the screen

If an error pops up your script, a popup will show up and if you open the Call Stack your script will show up.