How old does a debt have to be, before you are no longer legally bound to pay it?

S L asked: I remember hearing once that a debt after a certain amount of years, is moot. Does it depend on the state where the debt occurred or you current state of residence?

I heard that collection agencies that specialize in buying old debts, to try and collect on, **** for people to know [...]