Good advice here.
The value of the advanced degree depends on the field. Mine are in English--and since I'm not in academia, it's had little effect on my earning power (if anything, the Ph.D. is more of a hindrance, because some places are hesitant to hire an "over-qualified" candidate).
It has, however, had a major effect on my lifestyle, because even though I had a teaching assistantship, I still borrowed roughly $12,000 a year (living expenses--a grownup with financial obligations needs more than a 22-year-old with no debt and no family) for a total debt after 5 years of $60,000.
Now, I don't think that money was wasted because I received a lot from my education--and the best thing is, it can't be repossessed! But paying back that loan is a big chunk of my pay (and even if I were in academia, I'd only be making about the same salary I am now--mid-$30,000s).
My partner, on the other hand, has a Ph.D. in science. It tripled her earning potential. So her $45,000 in loans was more than worth it--she's in six digits (and would do better in private industry, but prefers not to be beholden to corporate interests).
And, since I'm lucky enough to have her, I don't worry about money too much--but I would caution someone who's worried about debt to look at the starting salaries in the field they plan to enter, then evaluate how well they can live with the debt. And it also makes a difference how old you are--I went to grad school in my 30s (late bloomer), but if I'd waited even another 5 or 10 years, it would have made it that much harder to (a) get a job, and (b) pay off the loans in time to retire.
At least the student loans will be paid off before I reach retirement age.
Best wishes to you,
Jankyn