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>
This commit is contained in:
AffectedArc07
2025-04-18 19:14:17 +00:00
committed by GitHub
parent df7eea25d7
commit 44e3bfa9b8
2 changed files with 12 additions and 1 deletions
+2 -1
View File
@@ -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
+10
View File
@@ -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