auxtools is a debugger, instruction profiler, experimental hot reloader, static bug checker, and
command-line launcher for BYOND worlds on Windows and Linux. Use it through the
VS Code extension or the auxtools CLI, build native
BYOND extensions against the auxtools Rust library, or work with DM
bytecode directly through dmasm.
To build or test auxtools from source, see CONTRIBUTING.md.
- VS Code extension (
sohpea.auxtools): Install auxtools Debugger from the Visual Studio Marketplace or Open VSX, or installauxtools-VERSION.vsixfrom GitHub Releases. It requires VS Code 1.80 or later, bundles both Linux and Windows binaries, and adds the launcher directory toPATHin VS Code terminals by default (auxtools.addToTerminalPath). - Command-line tools: Download
auxtools-linux.tar.gz(32-bit x86, glibc 2.35 or later) orauxtools-windows.zip(Windows 10 or later) from GitHub Releases and extract both files into the same directory so theauxtoolslauncher findslibdebug_server.so(Linux) ordebug_server.dll(Windows) beside it. - Rust library: Add
auxtools = "4"from crates.io to yourCargo.toml(see TheauxtoolsRust library for setup). - From source: See CONTRIBUTING.md for toolchain setup and build commands.
Compile your world with DreamMaker as usual, with #define DEBUG in your .dme so DreamMaker
writes line numbers into the .dmb for line breakpoints.
- In VS Code: Open a workspace containing a compiled
.dmband pressF5(or run auxtools: Debug in DreamDaemon). See the VS Code extension README for launch configurations, debugging views, commands, and settings. - From the command line: Start the world with:
auxtools launch WORLD.dmbThe launcher loads the debug library into BYOND without changes to your world's source. By default,
worlds run in console DreamDaemon (dd.exe on Windows, DreamDaemon on Linux) with -trusted. On
Windows, --server also supports windowed DreamDaemon (dreamdaemon-gui, which adds -close by
default) and dreamseeker. Passing -- ARGS... replaces the default BYOND arguments.
The launcher locates BYOND from --byond PATH, the BYOND_SYSTEM environment variable, and
standard install locations (the Windows registry and Program Files on Windows; ~/byond,
/usr/local/byond, and /usr/share/byond on Linux). Across a world.Reboot(), the launcher
reconnects automatically and restores breakpoints and hot reloads.
- Line, function (proc), instruction, and data breakpoints with DM conditions and hit counts
- Logpoints with interpolated DM expressions
- Pausing on caught or uncaught runtime errors, with include and exclude message filters
- Source-line and bytecode-instruction stepping (
step-over,step-in,step-out) - Call stacks for active and sleeping procs
- Viewing and editing local, argument, object, and global variables
- Evaluating DM expressions and multi-statement proc bodies, plus spawned evaluations
(
eval --spawn) that can sleep - Live proc disassembly
- Event journal tracking runtime errors, hot reloads, console output, world loads, and spawned evaluations across reboots
Multiple clients (VS Code windows and CLI commands) can connect to the same world at once. Each session keeps its own breakpoints, data breakpoints, and runtime error filters. Pausing stops the world for every session, and any session can resume it.
The auxtools CLI launches, inspects, steps, traces, profiles, and manages local worlds from a
terminal or script, with --json output and configurable timeouts. Editors integrate through
auxtools dap. See Command-line workflow for the command list, scripting options,
an example session, and exit codes.
auxtools profile measures DM execution time by proc, source line, and bytecode instruction, and
produces text, JSON, or a standalone interactive HTML report. See
Instruction profiling for CLI usage and how timings are measured, or
Instruction profiling in the VS Code extension
README.
auxtools launch --lcov and --cobertura record source line hit counts across a world run for
worlds compiled with #define DEBUG, printing a terminal summary and writing LCOV tracefiles or
Cobertura XML reports with no changes to DM source. See Line coverage for usage
and report formats.
Hot reload is enabled by default for launched worlds and applies supported edits to procs, types,
variables, resources, .dmf skins, and inline client/script text on save. See
Hot reload (experimental) for supported changes, reboot and rebuild behavior,
resources, skins, and client scripts.
auxtools check compiles every proc in a project with dmasm-compiler and reports known BYOND
compiler and runtime bugs for a target build without writing a .dmb or requiring BYOND to be
installed. See Checking for known BYOND bugs for options, output formats, and
exit codes.
The auxtools crate lets 32-bit native Rust cdylib libraries hook DM procs, read and mutate BYOND
values, lists, and strings, call DM procs, and subscribe to runtime errors. See
The auxtools Rust library for Cargo setup, Rust and DM examples, and
lifecycle and thread-safety rules.
auxtools supports BYOND 515.1637–515.1647 and 516.1648–516.1689 on Windows and Linux, and
attempts newer builds. See ci/supported-builds.txt for the exact list of
tested builds and ci/known-broken-builds.txt for builds known to be
broken.
- VS Code extension README: Launching, configurations, breakpoints, variables, evaluation, disassembly, profiling and hot reload UI, commands, and settings
- Command-line workflow: CLI command list, world selection, scripting, timeouts, and exit codes
- Instruction profiling: Profiling with
auxtools profileand how timings are measured - Line coverage: Recording line coverage with
auxtools launch, LCOV tracefiles, and Cobertura XML reports - Hot reload (experimental): Supported changes, reboot and rebuild behavior, resources, skins, and client scripts
- Checking for known BYOND bugs: Static checking with
auxtools check, options, output formats, and exit codes - The
auxtoolsRust library: Writing native Rustcdylibextensions with#[hook], DM setup, and thread safety - dmasm:
dmasm-bytecode,dmasm-compiler, anddmasm-reloadcrates, along with the proc compiler reference and DM bytecode specification - CONTRIBUTING.md: Building from source, running tests, checking BYOND recipes, CI checks, and releasing
- Design notes: Design decisions, invariants, deliberate limits, and facts about BYOND or DreamMaker found by experiment
This repository, including the auxtools and auxtools-impl crates, is licensed under the MIT
License. See LICENSE.
The following components are licensed under GPL-3.0:
auxtools-cli(auxtools-cli/LICENSE)debug_server(debug_server/LICENSE)auxtools-protocol(auxtools-protocol/LICENSE)auxtools-dm(auxtools-dm/LICENSE)instruction_hooking(instruction_hooking/LICENSE)dmasm,dmasm-bytecode,dmasm-compiler, anddmasm-reload(dmasm/LICENSE)- VS Code extension in
editors/vscode(editors/vscode/LICENSE)