The issue with debt for training is the same issue as the one with all exploitative working conditions: The choice of whether or not to work somewhere is often illusory. Real people inhabit a specific area with a specific set of employers. If the only job openings that:
1. You're qualified for
2. Will hire you specifically
3. Will pay you enough to survive
4. Are within a reasonable distance from you
5. Don't have some other, even worse catch than training debt
are ones that saddle you with a life-changing amount of debt if you quit before x years, people are coerced by the fact that they need money for basic to enter this kind of working arrangement, even if they technically had a choice.