debug_event


描述

This function generates a custom debug event that will be shown in the Graph View of the debugger when a game is being run in Debug Mode. If you require messages to be displayed when not in debug mode, then you should be using show_debug_message().


语法:

debug_event(string)

参数 描述
string The custom debug event string to use.


返回:

N/A(无返回值)


例如:

if !surface_exists(global.EffectsSurface)
   {
   debug_event("Recreating Effects Surface");
   global.EffectsSurface = surface_create(room_width, room_height);    }

The above code checks to see if an surface exists and if it does not, a debug event is triggered in the graph view of the debugger (the game must have been run in Debug Mode for this to be visible) and the surface is recreated.