show_debug_message

Show a debug message in the compiler window.

Syntax:

GML Code Example

show_debug_message(string);


Argument Description
string The custom debug message to show.


Returns: N/A


Description

This function will create a custom debug message that is shown in the compiler window at runtime.


Example:

GML Code Example

if !instance_exists(obj_Exit)
    {
    show_debug_message("Exit not created!");
    game_end();
    }
 

The above code checks to see if an instance exists and if it does not, a debug message is shown in the compile window and the game is ended.





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