gm_rdb adds remote debugging to Garry's Mod.
It provides two modules:
rdbfor the serverrdb_clientfor the client
Basic Lua API:
rdb.activate([port])rdb.deactivate()rdb.Versionrdb.VersionNum
Useful launch flags:
-rdb_allow_remoteto 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.
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 ReleaseSet AUTOINSTALL and AUTOINSTALL_CLIENT to copy the built files into a Garry's Mod folder.
- Windows and Linux are covered by CI.
- macOS support is experimental.
- Keep the historical
.dllsuffix on macOS module names.
This project started as a fork of danielga/gm_rdb. Debugger protocol tooling: LRDB