Last active
November 26, 2021 18:33
-
-
Save nkrapivin/f3118d1396000979db1f2c2eaf43309e to your computer and use it in GitHub Desktop.
undocumented debug_event stuff
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
some may only work on Linux, or only on consoles... | |
usage: debug_event("thing here"); | |
DumpMemory - prints the amount of allocated memory to console (Total memory used 0xblabla bytes) | |
CheckGLError - I assume it's supposed to ignore OpenGL errors? But it seems to be unused lol. | |
VMTraceOn - sets g_fVMDebug to true | |
VMTraceOff - sets that variable to false | |
VMBadRefsIgnore - sets g_fJSIgnoreBadRefs to true | |
VMBadRefsCrash - sets that variable to false | |
MultithreadedGCOn - sets g_TargetMultithreadedGC to true | |
MultithreadedGCOff - sets that variable to false | |
OutputDebugOn - this one is actually documented | |
OutputDebugOff - this one is not, but it's doing the opposite of OutputDebugOn | |
BreakOnError - this one is documented too, disables the exception handler entierly, allowing you to debug the game in external tools. | |
(very useful on consoles, where you have custom debug tools made by the console manufacturer) | |
ResourceCounts - prints the amount of game resources/data structures/particle systems/emitters to the console... except game objects for some reason??? | |
Have fun, and stay pug! | |
PS: passing any other parameter just sends the string to the debugger and it gets displayed in the Graph. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment