Compiler can not find class

Compiler can not find class in gameplay debugger module. My code looks like below.

#include"GameplayDebugger/Public/GameplayDebuggerCategory.h"

UCLASS()

class FMyCategory: public FGameplayDebuggerCategory

Everything works fine but when compiling, I get the error that says “EXEC: Couldn’t find parent type for FMyCategory named FGameplayDebuggerCategory in current module or any other module parsed so far”.

I have already included gameplay module in build.cs file.

PublicDependencyModuleNames.AddRange(new string[]{Other Modules, "GameplayDebugger" })

How to fix it? Please help me. Thanks a lot.

Answered here: UHT Couldn't Find Parent Type of a Module Declared in Build.cs - C++ - Unreal Engine Forums