Unreal Engine has a lot of helper debug drawing functions inside DrawDebugHelpers.h file. Some of the most common ones are:
DrawDebugLineDrawDebugPointDrawDebugBoxDrawDebugSpheremany, many more
Here is an example usage:
DrawDebugLine(
GetWorld(),
GetActorLocation(),
GetActorLocation() + GetActorForwardVector() * 100.0,
FColor::Green);This will result in a green line drawn from the center of the actor showing its forward vector.
Here is an example how DrawDebugLine and DrawDebugCircleArc look like in game view:


