-
Notifications
You must be signed in to change notification settings - Fork 8
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
In-Game: debug_mode in-built variable was incorrectly marked as deprecated #8505
Comments
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. |
I'm sorry, but it does not. Running a project with either Run (F5) or Debug (F6), gm_build_type returns "run" in both cases. |
There is no suitable replacement for debug_mode that is deprecated. |
|
YoYoGames/GameMaker-Bugs#8505 * Removed deprecated tag from debug_mode page * A couple of other small changes on related pages
Removed deprecated tag on the |
Verified fixed in IDE v2024.1300.0.715 Runtime v2024.1300.0.728. |
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
The text was updated successfully, but these errors were encountered: