per il debug usa firebug, che tra le tante cose mostra anche le modifiche apportate al DOM in tempo reale
ciao