Skip to content
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

Closed
gm-bug-reporter bot opened this issue Nov 23, 2024 · 8 comments
Closed
Assignees
Labels
docs-bug GameMaker Manual Bugs runner-bug In-game bugs with the "GameMaker Studio 2" runtimes
Milestone

Comments

@gm-bug-reporter
Copy link

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

@gm-bug-reporter gm-bug-reporter bot added the runner-bug In-game bugs with the "GameMaker Studio 2" runtimes label Nov 23, 2024
@PrismaticRealms
Copy link

Edit: Not really a bug, more of question/concern or feature request.

@stuckie
Copy link

stuckie commented Nov 25, 2024

Closing as above.

@stuckie stuckie closed this as not planned Won't fix, can't repro, duplicate, stale Nov 25, 2024
@github-project-automation github-project-automation bot moved this from Triage to Done in Team Workload Nov 25, 2024
@gurpreetsinghmatharoo gurpreetsinghmatharoo added the docs-bug GameMaker Manual Bugs label Nov 26, 2024
@PrismaticRealms
Copy link

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

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.

@PrismaticRealms
Copy link

Closing as above.

There is no suitable replacement for debug_mode that is deprecated.
Please advise.

@YYBartT
Copy link

YYBartT commented Nov 27, 2024

debug_mode does indeed allow to differentiate between a debug run (F6) and a normal run (F5) at runtime and there is currently no alternative for it. After checking internally it looks like it could be marked as not deprecated in the current runtime. Reopening.

@YYBartT YYBartT reopened this Nov 27, 2024
@github-project-automation github-project-automation bot moved this from Done to Triage in Team Workload Nov 27, 2024
@stuckie stuckie moved this from Triage to Backlog in Team Workload Nov 28, 2024
@jackerley jackerley added this to the 2025.1 milestone Nov 28, 2024
@github-project-automation github-project-automation bot moved this from Backlog to Done in Team Workload Nov 28, 2024
YYBartT added a commit to YoYoGames/GameMaker-Manual that referenced this issue Nov 28, 2024
YoYoGames/GameMaker-Bugs#8505

* Removed deprecated tag from debug_mode page
* A couple of other small changes on related pages
@YYBartT
Copy link

YYBartT commented Nov 28, 2024

Removed deprecated tag on the debug_mode manual page.

@Emc1923
Copy link

Emc1923 commented Jan 9, 2025

Verified fixed in IDE v2024.1300.0.715 Runtime v2024.1300.0.728.

@Emc1923 Emc1923 moved this from Ready for QA to Verified in Team Workload Jan 9, 2025
@YYDan YYDan changed the title debug_mode deprecated but no replacement? In-Game: debug_mode in-built variable was incorrectly marked as deprecated Jan 16, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
docs-bug GameMaker Manual Bugs runner-bug In-game bugs with the "GameMaker Studio 2" runtimes
Projects
Status: Verified
Development

No branches or pull requests

6 participants