Closed gm-bug-reporter[bot] closed 22 hours ago
Edit: Not really a bug, more of question/concern or feature request.
gm_build_type will give you what you want https://manual.gamemaker.io/beta/en/#t=GameMaker_Language%2FGML_Reference%2FOS_And_Compiler%2FGM_build_type.htm&rhsearch=GM_build_type&rhhlterm=GM_build_type
Closing as above.
Description
According to the manual, the debug_mode variable is deprecated and its use should be discouraged.
My concern is that currently, to my knowledge, this is the only way to determine if a project was built using the F6/Debug build command (if debug_mode is true) or using the F5/Run build command (if debug_mode is false). Since debug_mode should not be used, is there or will there be a replacement method of determining this?
Others have suggested creating different Configs such as a config for a "release" version and a config for a "debug" version. While a great idea in general for managing different types of builds, this is not a substitution for determining if the Debug Module has been loaded and is running alongside your build or not (since a "debug" designated Config can be run using F5 and thus not really running in "Debug" mode.)
In summary, I don't think that debug_mode should go away, or if it does, it should have an equivalent replacement.
Steps To Reproduce
n/a
Which version of GameMaker are you reporting this issue for?
IDE v2024.8.1.171 Runtime v2024.8.1.218
Which operating system(s) are you seeing the problem on?
Mac 15.1.1
7c146983-e403-40aa-aaca-45c504d0f244