Depression is a debilitating illness no matter what way you look at it, but from a perspective of sleep, it also has a number of detrimental effects. In fact, sleeping issues may actually stem from an undiagnosed bout of depression, so closely linked can the symptoms be.