← 输入框|github.com|刷新
Skip to content
auxtoolsPublic

About

Rust library for low-level interfacing with BYOND's virtual machine. Includes a remote debugger for the BYOND DreamMaker language, hot-reloading, etc.

Topics

Resources

Contributing

Stars

36 stars

Watchers

7 watching

Forks

Latest commit

 

History

1,295 Commits

Folders and files

Repository files navigation

auxtools

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.

Installation

  • VS Code extension (sohpea.auxtools): Install auxtools Debugger from the Visual Studio Marketplace or Open VSX, or install auxtools-VERSION.vsix from GitHub Releases. It requires VS Code 1.80 or later, bundles both Linux and Windows binaries, and adds the launcher directory to PATH in VS Code terminals by default (auxtools.addToTerminalPath).
  • Command-line tools: Download auxtools-linux.tar.gz (32-bit x86, glibc 2.35 or later) or auxtools-windows.zip (Windows 10 or later) from GitHub Releases and extract both files into the same directory so the auxtools launcher finds libdebug_server.so (Linux) or debug_server.dll (Windows) beside it.
  • Rust library: Add auxtools = "4" from crates.io to your Cargo.toml (see The auxtools Rust library for setup).
  • From source: See CONTRIBUTING.md for toolchain setup and build commands.

Quick start

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 .dmb and press F5 (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.dmb

The 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.

Debugger features

  • 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.

Command-line workflow

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.

Instruction profiling

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.

Line coverage

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 (experimental)

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.

Checking for known BYOND bugs

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 Rust library

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.

Supported BYOND builds

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.

Documentation

License

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:

About

Rust library for low-level interfacing with BYOND's virtual machine. Includes a remote debugger for the BYOND DreamMaker language, hot-reloading, etc.

Topics

Resources

Contributing

Stars

36 stars

Watchers

7 watching

Forks

Releases

Contributors

Languages