In e.g. Sweden (that has this PhD system), the max student debt allowed (unless you go to a private lender which is more or less unheard of) is for 5 years full time studies. Meaning you already "maxed out" your student debt before starting tour PhD.