C++ DEBUG MACROS
Drop‑in, type‑safe replacements for UE_LOG
, GEngine->AddOnScreenDebugMessage
, and DrawDebugString
— Easy log macros for C++ Devs. Pass variadic arguments of any type to convert and print with configurable presets
🛠️How to Setup

1️⃣ Simple Macros

PrintInfo(...)
Screen + Log
🟢 Info
PrintInfo("Health:", HP);
PrintWarn(...)
Screen + Log
🟡 Warn
PrintWarn("Low Ammo:", Ammo);
PrintError(...)
Screen + Log
🔴 Error
PrintError("Null Enemy Pointer!");
LogInfo(...)
Log only
🟢 Info
LogInfo("Level Loaded:", LevelName);
LogWarn(...)
Log only
🟡 Warn
LogWarn("Invalid path", Path);
LogError(...)
Log only
🔴 Error
LogError("DB connection failed");
Print3D(Location, ...)
World + Log
🟠 Info
Print3D(GetActorLocation(), "Hit", Dmg);
Mix as many arguments as you like — strings, numbers, vectors, structs, arrays, enums, booleans, etc. Output styling (colour, duration, severity) follows your ALS preset configuration.
2️⃣ Custom Macros

Use Custom Macros when you need:
A specific preset (colour, duration, log level) baked straight into the call.
Logging from static functions, libraries, or services that lack a World Context.
Fine‑grained control over where the message goes.
You can also:
Toggle file logging.
Change default on‑screen duration & colour.
Globally enable/disable 3‑D debug strings.
All from Project Settings → Plugins → ALS.
Last updated