Detect Magic

Now removed from the game, Detect Magic allowed the mage (and others) to see the magical buffs on an enemy target. Normally, you could only see debuffs put there by you or others. With the default Blizzard UI, the target's buffs appeared directly below the row of debuffs on the target's unit frame. The Detect Magic debuff placed on the target was dispellable as a magic debuff. The spell caused no threat, and can be cast on enemies without aggroing them, similar to Hunter's Mark.

Tips and tactics
Detect Magic was useful in many PvE encounters where a boss may use a special self buff throughout the fight. Some bosses had a damage shield or a reflect shield that can be dangerous if not detected quickly. While these buffs also usually have a casting animation with them, it was difficult to spot it amongst the visual clutter when many other players are attacking the target. Detect magic would show the buff clearly on the target's unit frame.

Detect magic was good for finding buffs to Spellsteal.

There was no cooldown on this (aside from the Universal Cooldown)

This spell had an unusually long range, so it could be used in pvp to cause panic when enemy troops saw you casting something from very far away.

Mages often used this spell to mark targets. "The one that just had the swirling, glowing ball around it is the one I will polymorph."

Since it was a debuff, this spell could be dispelled; but you could also use it to "insulate" other debuffs. Debuffs are dispelled in the order they are cast, putting this on an enemy before your Warlock friend casts his curses will make your enemy have to dispel your Detect Magic before he can get to the more harmful effects. Most dispels are instant cast and very cheap, so it's main benefit is the time it takes.

When facing a hostile Warlock with a Felhunter in a one-on-one fight, cast this spell on him before Polymorph, so the Felhunter will have to dispel it (with Devour Magic) first then wait the Cooldown of 8 seconds to dispel your Polymorph. Eight seconds are often priceless in this kind of encounter.