In the situation where help is clearly needed, 'let's consider possible solutions' is a better entry point, along with 'let's ensure we don't make it worse' - i.e. take a snapshot of the current situation, store the current working file, etc. Now you've gone into a collaborative situation, and if there's a solution the person will feel like they've been a part of it, not like they're an idiot who should have been able to figure it out on their own. Makes for a much better working environment, better morale, sense of being on the team, etc.
For the person on the other end, the person who needs help, this is where keeping a log of your activities (in the lab world, this means a detailed and updated lab notebook, maybe a logging app of some kind for programming), so if someone asks the (sometimes irritating) question of 'what have you tried already' you can just point them to it.
For the case of seriously depressed people who can't get out of bed, that's a bit tougher. Cup of psychedelic mushroom tea perhaps, plus someone to hold their hand for a few hours?