ShowDebug AbilitySystem command is not working properly

Hello, I have been trying to lkearn GameplayAbilitySystem for weeks, and I was stuck with this problem. I thought I was making a programming mistake and couldn’t find it.
So yesterday I had this crazy idea: test the “ShowDebug AbilitySystem” in the Unreal’s ActionRPG smaple game. And the bug happened there too!

In short: the ShowDebug AbilitySystem is showing the stats of the player character, not the currently selected character (Page Up and Page Down).

As you can see in the image, the text says “Health: 200”, which is the player’s health (the enemy is at 700 or so).

Please fix it!

I came across the same problem in 2022, then realised you have to type Abilitysystem.Debug.NextTarget in the console.

Not working for me, UE5.1

It is still broken and, I guess, will not be fixed. I coded a small workaround, that outputs attributes into Gameplay Debugger instead.

You can use the GDT to debug the GAS.
Example view:


The debugger can be opened using EnableGDT (and right now GAS is bound to numpad key 3).
Hope this helps :slight_smile:

It’s not broken.

In order to be able to see other actor’s GAS values using PageUp/PageDown , you have to modify

Config/DefaultGame.ini:

[/Script/GameplayAbilities.AbilitySystemGlobals]
bUseDebugTargetFromHud=true

After that, restart the Editor and use showdebug abilitysystem while in game.

Credits to:

9 Likes

bUseDebugTargetFromHud=true

Works perfect for me! Thank you! :slight_smile: