Debugging server crashing on Garry’s Mod
By default we only store the latest runtime console log to avoid customers running up disk space without realising. However sometimes you want to keep your console logs to debug crashes etc.
First, you’ll want to enable the debug flag in the startup parameters:

When your server crashes it’ll generate the debug.log, and core dump file in your servers root directory:

Finally you’ll want to head over to the mod manager & install the historic logs we’ve added, to start saving your consoles output logs:

Once you’ve done this, the logs will be timestamped with a prefix noting if it was a restart or a crash:

Note: This doesn’t require you to enable condebug, as it utilises our console wrapper. The advantage to this is that condebug (the garrysmod/console.log) doesn’t log everything, especially during a crash.