Debugging Guide

This article explains how to debug functions and troubleshoot common issues in Generic Movement System.

Cover.GMS
罗传月武(YueWu)

Author

罗传月武(YueWu)

专注游戏开发和Web技术。

Created: Apr 20, 2025Updated: Sep 10, 2026

Table of contents

Debugging Guide

When using GMS, you have several ways to troubleshoot issues you encounter.

Debug Component

Added GMS_DebugComponent to assist in visualizing the following for a character:

  • World orientation of the Actor
  • Animation space orientation
  • View orientation

This component aids developers in debugging movement and animation behavior.

SystemLog

In your Config/DefaultEngine.ini

ts
1[Core.Log]
2LogGMS = Verbose
3LogGMS_Animation = Verbose

GMS primarily has two log categories:

  • LogGMS: Used for the movement control part. Verbose will output relatively detailed logs at key code points, while VeryVerbose will output detailed logs for data that changes every frame (such as rotation per frame).
  • LogGMS_Animation: Used for the animation control part. Verbose will output relatively detailed logs at key code points, while VeryVerbose will output detailed logs for data that changes every frame (such as details of every in-place turn).

Component Details Panel

The simplest method is to find your character while the game is running. In the details panel, locate the character's movement system component and observe the details panel.

Check Movement Settings Status:
You can see the current settings applied in the movement system component. Use this information to verify whether the current settings have switched to your desired configurations.

GMS调试指南.001

Check Control System States:
You can view all current states of the character's movement control states under the State category.

GMS调试指南.002

Main Animation Blueprint States:
You can also view the states of Main Anim Instance.

GMS调试指南.003

Check Animation Layer States:
Expand AnimLayers to see the settings and states of all anim layers currently used by the character. This information helps verify whether the corresponding settings are correctly applied.

GMS调试指南.004

RewindDebugger

This is the official animation debugging tool, which you can access through Tools -> Debug -> RewindDebugger to open the debugging panel.

GMS调试指南.005

Make sure the game is running, then select the character you want to debug in the debugging panel.

GMS调试指南.006

Click the red button to start recording; it will display and log all animation-related information about the character.

GMS调试指南.007

After clicking the red button again to stop recording, you can pause the game and replay the recorded results to troubleshoot related issues.

Performance Measurement

GMS has added performance measurement statistics to key code sections in the system.
You can enable them by entering Stat GMS in the Console.

调试指南.统计

常见问题

Trouble Shooting

Problem with Sequence

GMS调试指南.008

Remove ControlRig track from your sequence or it will crash the game because the actual main animinstance will be overridden by ControlRig. Reason:

GMS调试指南.009