GameMaker (2.0 - 2.2.x)
Icon

Bug Logging

RefresherTowel

You must be logged in to obtain assets

Description

Creates a log file of errors.

Call log_ini() when you first start the game, this initialises the few variables it needs and creates the log file for the current session. Looking inside log_ini you can see global.show_debug = true. If this is true, the script will also send a show_debug_message() to the console with your error message as well as logging it in the file.

To log an error, simply replace your standard show_debug_message() calls with log("This is the sentence you want logged.")

When you open the log file it will be laid out like this:

[Base]
Working dir="D:\Sample\Folder"
Executable="D:\Sample\Folder"
Build Date="3:54:55 PM"
Runtime Version="2.2.0.258"
Version="0.0.0.1"
Current Time="3:55:12 PM"
Current Date="31-10-2018--2153016"
OS="Windows OS"
[Errors]
1="Flood fill failed, restarting game."
0="Flood fill attempted to fill too many times, exiting with -1."

End User Licence Agreement (EULA).

Age Rating: 4+

Version

GMS2 - Version 1.0.0. Published October 31, 2018

Loading, please wait

Package contents

Loading, please wait

What is the issue?

Loading, please wait