Only creatures that are attacking as Dragonrage resolves will count toward how much mana is generated, and only those creatures will gain the "firebreathing" activated ability. In other words, casting Dragonrage before you've declared attackers usually won't do anything.

Artwork
Loading artwork…
Dragonrage
Fate Reforged · #97 · EN
Nonfoil—Foil—
Card rules
Add
for each attacking creature you control. Until end of turn, attacking creatures you control gain "
: This creature gets +1/+0 until end of turn."
"Dragons in the skies of Tarkir—for the first time, it feels like my home." —Sarkhan Vol
Uncommon · Illustrated by Tomasz Jedruszek
Format legality
Commander Legal
Duel Legal
Legacy Legal
Modern Legal
Oathbreaker Legal
Penny Legal
Pioneer Legal
Tlr Legal
Vintage Legal
Alchemy Not Legal
Brawl Not Legal
Competitive Brawl Not Legal
Future Not Legal
Gladiator Not Legal
Historic Not Legal
Old School Not Legal
Pauper Not Legal
Pauper Commander Not Legal
PreDH Not Legal
Premodern Not Legal
Standard Not Legal
Standard Brawl Not Legal
Timeless Not Legal
Rulings
Published rulings from the downloaded Scryfall catalog. Source card record · Rules and interactions
Even though it can generate mana, Dragonrage isn't a mana ability. It uses the stack and can be responded to.
Remember that unused mana is lost at the end of each step and phase. For example, if you cast Dragonrage during your declare attackers step, except in very rare cases, the mana Dragonrage generates won't last until the declare blockers step or the postcombat main phase.