debug_mode

Tells you if the game is running in debug mode or not.

Syntax:

GML Code Example

debug_mode


Returns: Boolean


Description

This read only variable returns true when the game is being played in debug mode and false when being played as normal.


Example:

GML Code Example

if debug_mode
    {
    ini_open("Cheats.ini");
    }
 else
    {
    ini_open("Game.ini");
    }
 

The above code opens a different ini file depending on the value of the read-only variable debug_mode.


Back: Debugging



No Examples Submitted

Does this page need better examples? Be the first to Submit

No Edits Suggested

Is this page unclear or not descriptive enough? Suggest an edit to the page and with enough upvotes your changes will be made.

No Questions Have Been Ask

Do you have a question about this page? Ask it Here