Source Academy Modules
    Preparing search index...

    Function debug_log

    • Logs any information passed into it within the update_loop. Displays the information in the top-left corner of the canvas only if debug mode is enabled. Calling display within the update_loop function will not work as intended, so use debug_log instead.

      Parameters

      • info: string

        The information to log.

      Returns void

      enable_debug();
      update_loop(game_state => {
      debug_log(get_game_time());
      });