Go to the BP_SmartAIComponent and create a new variable called DebugAttackTrace and set its type to Boolean then tick on Instance Editable in its variable settings.

Go to the ActiveMeleeDetect function and copy the image below.