I know this is not right, but when I have problems, I really think that a glass of whiskey and gambling is a good idea.
Based on this thread title and your words that "when you have problems" I assume that gambling you mean is gambling for fun and not for profit but even if that's the case, gambling while drunk might not be a good idea.
Except if you know how to limit the amount of money you use when you're drunk, then you're good to go with both options.
But for me, gambling is not the answer to get out of my problem because I'm still looking for profit when I do it.