From 44e3bfa9b8bacc7caece69f9967da5c2f79272dd Mon Sep 17 00:00:00 2001 From: AffectedArc07 <25063394+AffectedArc07@users.noreply.github.com> Date: Fri, 18 Apr 2025 20:14:17 +0100 Subject: [PATCH] Adds hooks for debugger specific behaviour (#28958) * Adds hooks for debugger specific behaviour * Update .github/workflows/ci.yml Signed-off-by: AffectedArc07 <25063394+AffectedArc07@users.noreply.github.com> --------- Signed-off-by: AffectedArc07 <25063394+AffectedArc07@users.noreply.github.com> --- .github/workflows/ci.yml | 3 ++- code/__HELPERS/debugger.dm | 10 ++++++++++ 2 files changed, 12 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 7af4533457f..bc31358247d 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -86,12 +86,13 @@ jobs: with: path: $HOME/BYOND key: ${{ runner.os }}-byond + # We test PARADISE_PRODUCTION_HARDWARE here because we dont in station_mapload_tests - name: Compile All Maps run: | tools/ci/install_byond.sh source $HOME/BYOND/byond/bin/byondsetup tools/ci/generate_maplist.sh - DreamMaker -DMULTIINSTANCE -DCIMAP paradise.dme + DreamMaker -DMULTIINSTANCE -DCIMAP -DPARADISE_PRODUCTION_HARDWARE paradise.dme station_mapload_tests: name: Station Tests diff --git a/code/__HELPERS/debugger.dm b/code/__HELPERS/debugger.dm index e66fa8b3eb1..b49d95bec14 100644 --- a/code/__HELPERS/debugger.dm +++ b/code/__HELPERS/debugger.dm @@ -2,6 +2,13 @@ // These procs are named EXACTLY as they are since the debugger itself will hook into these procs internally // Do not change these names. Please. -aa +#ifndef PARADISE_PRODUCTION_HARDWARE +// Use GLOB.debugger_enabled for debugger-specific behaviour like not delaying MC subsystems for delays +// This is gated behind PARADISE_PRODUCTION_HARDWARE not being set so we dont have the check overhead in the MC loop on prod +// By gating it we can ensure in CI that nothing has slipped in +GLOBAL_VAR_INIT(debugger_enabled, FALSE) +#endif + /proc/auxtools_stack_trace(msg) CRASH(msg) @@ -22,3 +29,6 @@ var/debug_server = world.GetConfig("env", "AUXTOOLS_DEBUG_DLL") if(debug_server) CALL_EXT(debug_server, "auxtools_shutdown")() + #ifndef PARADISE_PRODUCTION_HARDWARE + GLOB.debugger_enabled = TRUE + #endif