It also depends on your major. My daughter is taking on ~20K debt for her undergrad but based on the average potential salary for her major (chemical eng) and the high percentage of grads who get hired straight out of her university (RPI), she should have no difficulty paying it off and therefore worth it. However, she turned down a more prestigious school (CMU) that offered less aid and would have left her with more debt ($90~100K), because she didn’t feel it was worth the difference.
My brother, on the other hand, took on $20~30K of debt to get a degree in film from Berkeley which he has never used (getting a job in film industry is tough) and still hasn’t paid off his loan years later. Not worth it for him.