Page title: Saddle: Debug Datapacks Live in Minecraft

Meta description: Download Saddle for Minecraft and debug datapack functions with breakpoints, stepping, and live state edits from VS Code. Take the reins of your code today.

Saddle

Datapacks are powerful, but debugging them has always felt like chasing a galloping horse. You write a function, reload the world, watch something break, and guess which line caused it. Saddle changes that entirely. This Fabric mod embeds a Debug Adapter Protocol server directly inside Minecraft, letting you set breakpoints, step through commands, and edit live game state from VS Code or any DAP client. In Minecraft, a saddle lets you take the reins of something that runs on its own. This mod does the same for datapack execution: stop it where you want, back it up, and steer it instead of watching it race past.

What Saddle Actually Does

At its core, Saddle wraps every parsed command entry with a decorator that carries its function id and source line origin. Macro lines tagged with $... are tracked too, so they are fully debuggable. When no debug client is attached, the runtime overhead per command is a single volatile read, which means your world performs exactly as before until you actually need to debug.

When you hit a breakpoint, step, or pause, the server thread parks inside command execution. The game freezes mid-function with vanilla execution state intact, and while parked, the thread serves a task queue so requests that need game state still run safely. Breakpoint paths map to function ids automatically, so any workspace layout works without configuration. Breakpoints on comments or blank lines shift down to the next executable line.

Core Debugging Features

  • Lifecycle support for initialize, launch/attach, configurationDone, and disconnect
  • Breakpoints on plain commands and macro lines, with breakpointLocations support
  • Stepping with continue, next, stepIn, stepOut, and pause
  • Stack traces, scopes, variables, and setVariable for live editing
  • An evaluate console that runs any command and autocompletes through Brigadier
  • In-game chat mirrored to the client as output events

Time Travel and Live Inspection

The time travel feature is where Saddle really shines. Using a ring buffer of executed commands (20,000 steps by default, configurable), you can step back and reverse-continue through history. While in the past, the stack, executor, macro arguments, and reconstructed scoreboard and storage state are shown for that exact moment. Scopes keep their live names so expanded rows survive moving between present and history, and the Executor scope carries a time travel marker. Forward stepping replays the recording back to the present.

Each stack frame exposes live scopes while stopped: the Executor with an editable NBT tree of the running entity, Macro Arguments, the Command about to run with every selector and coordinate triple resolved, user-pinned Watched expressions, every Scoreboard objective, and every Storage id as editable NBT. Container previews are size-based, so browsing large storages stays fast.

Watch and Pin Expressions

The WATCH panel, the pinned Watched scope, and the Saddle Watch view all accept entity selectors, storage and entity paths, block coordinates, score objectives, and macro arguments. The Saddle Watch view refreshes on a timer without needing a breakpoint at all, and rows backed by scores or NBT show an inline pencil for immediate edits. If you want a single watch panel, right-click any section header in the Run and Debug sidebar and uncheck Watch once, then drag Saddle Watch into its old spot.

Getting set up is quick. Install the mod plus Fabric API, grab the VS Code extension from the Marketplace, open your datapack folder, set breakpoints in your .mcfunction files, and run Attach to Minecraft (Saddle). If you prefer a streamlined path, the foxygame.net launcher handles the whole setup for you, letting you install Saddle alongside its curated add-on catalog with a single click and keeping it updated automatically.

Compatibility and How to Install

Saddle targets Minecraft 26.2 with Fabric Loader 0.19.0 or newer, Fabric API, and Java 25. The 26.x line is unobfuscated, and the buildscript uses the no-remap Fabric Loom plugin. The DAP endpoint listens on 127.0.0.1:16352 by default and can be overridden with system properties. Non-loopback binds are refused unless explicitly allowed, since the debug port permits unauthenticated command execution.

To download Saddle and get started:

  • Install the mod and Fabric API into your mods folder
  • Install the Saddle VS Code extension from the Marketplace
  • Open your datapack folder and set breakpoints in .mcfunction files
  • Run Attach to Minecraft (Saddle) or press F5
  • Trigger a function in game, from a tick function, or straight from the Debug Console

If you are wondering how to install Saddle on a dedicated server, remember to set max-tick-time=-1, since suspending at a breakpoint parks the server thread and would otherwise trip the watchdog. Keep the mod and extension on matching versions, as Saddle announces a version event on attach and warns when the two drift apart.

Final Thoughts

Saddle for Minecraft turns datapack development from a guessing game into a proper debugging session. Breakpoints, stepping, time travel, and live editing of scoreboards, storage, and entity data give you full control over execution that used to run wild. Whether you are fixing a stubborn tick function or exploring complex macro logic, this mod puts the reins firmly in your hands.