Undocumented: How to decide stack sizes

I echo this question. Any update on this? I think we have run out of stack, but have no way of checking that isn’t trial and error. I would like to know how I should go about finding some numbers related to my code.