Comment Could it be that you're using a wireless mouse ? (Score 1) 691
I think the subject says it all.
Do not underestimate the value of print statements for debugging. Don't have aesthetic convulsions when using them, either.