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().
|string||The custom debug event string to use.|
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.