Print debug

This function will print a string to the error log, which can be toggled in-game by pressing  (requires using the left Ctrl key -- the error log will not be toggled when using the right Ctrl key). If provided a number, the function will use to convert it to a string.

Syntax
print_debug( text );

Returns
N/A

Basic
// attack_update.gml // prints the value of strong_charge (automatically converted to a string) on frame 1, window 2 of AT_FSTRONG if ( attack == AT_FSTRONG && window == 2 && window_timer == 1 ) { print_debug( strong_charge ); }

Advanced
// got_hit.gml // produces a debug message like "Player 1 hit by Zetterburn (Player 2)" // prints strings and numbers together by converting the numbers to strings so that they can be combined var hit_name = get_char_info( hit_player, INFO_STR_NAME ); print_debug( "Player " + string( player ) + " hit by " + hit_name + " (Player " + string( hit_player ) + ")" );