show_debug_message

Show a debug message in the compiler window.

Syntax:

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:

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.


Back: Miscellaneous
Next: show_debug_overlay
© Copyright YoYo Games Ltd. 2018 All Rights Reserved