From 7b7cb45f7c1ed307b585ab3506dc57854ec076a6 Mon Sep 17 00:00:00 2001 From: Michael Smith Date: Wed, 30 Apr 2025 22:55:05 +0100 Subject: Add some useful info printouts to debug builds Specifically when building in debug mode, we now: * Display all features on load, including skipped and internal ones, sorted by internal name instead of display name. * Print the names of all matched gametype tags after the feature list. * Add an sst_dbg_getcmdcb command to get the address of a command callback for quick breakpoint insertion or Ghidra lookup. * Add an sst_dbg_sendtables command to dump out the full ServerClass tree to help get names for entprops.txt. Note: this output is very long so you'll likely need to log console output to a file to be able to read it all. There's a bunch of developer experience and debug help stuff I want to get done eventually. This is just a very small piece, but it's a start. --- compile.bat | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'compile.bat') diff --git a/compile.bat b/compile.bat index 0c3bead..bef5436 100644 --- a/compile.bat +++ b/compile.bat @@ -26,7 +26,7 @@ set dbg=0 :: XXX: -Og would be nice but apparently a bunch of stuff still gets inlined :: which can be somewhat annoying so -O0 it is. if "%dbg%"=="1" ( - set cflags=-O0 -g3 -fsanitize-trap=undefined + set cflags=-O0 -g3 -fsanitize-trap=undefined -DSST_DBG set ldflags=-O0 -g3 ) else ( set cflags=-O2 -- cgit v1.2.3-54-g00ecf