Skip to content

Latest commit

 

History

History
44 lines (28 loc) · 1.05 KB

File metadata and controls

44 lines (28 loc) · 1.05 KB

gm_rdb

gm_rdb adds remote debugging to Garry's Mod.

It provides two modules:

  • rdb for the server
  • rdb_client for the client

Basic Lua API:

  • rdb.activate([port])
  • rdb.deactivate()
  • rdb.Version
  • rdb.VersionNum

Useful launch flags:

  • -rdb_allow_remote to allow non-local debugger connections
  • -rdb_pause_on_activate [seconds] to pause when debugging starts

Default ports are 21111 for rdb and 21112 for rdb_client.

Build

This project uses CMake and garrysmod_common.

cmake -S . -B build -DGARRYSMOD_COMMON_PATH=third-party/garrysmod_common
cmake --build build --target rdb rdb_client --config Release

Set AUTOINSTALL and AUTOINSTALL_CLIENT to copy the built files into a Garry's Mod folder.

Notes

  • Windows and Linux are covered by CI.
  • macOS support is experimental.
  • Keep the historical .dll suffix on macOS module names.

Credits

This project started as a fork of danielga/gm_rdb. Debugger protocol tooling: LRDB