Back of the envelope plan to become a GP for those who'd like to:
(Not considering the 4A*s at A-level, or the other hoops to get through in order to get to the point of medical school if you come at it from a different direction - as a graduate/professional entry you would probably pay for preparation courses, exams etc etc)
5-6 years of University. About £10K fees per year. Don't pay fees the last year. Cost of living on top (in a University town). Add £10K per year. Pay extra if you want to add a 'science' year (BSc). Have to commute to placements. May or may not be compensated for that (if not, pay for your room, and pay for where you need to stay on placement). Academic year is longer, but get a job in holidays and work in the evenings when you can at university.
Complete University: pay to move to a random place that you've been allocated a job in without family support. Pay for your GMC license, and insurance. (Sucks up about £500 or so out of the first pay packet). Pay for your professional exams to allow you to apply for your next stage of training (varies depending on whether you want to be a GP, or a psychiatrist, or a hospital doctor or surgeon - probably around £1-1.5K to do the set of exams). Fail them because revising whilst doing 70 hours a week switching between days and nights is hard. Pay for them again. Pay for a course so you don't fail them again (lets add an underestimate of £2-3K for this).
Apply for GP training. Get sent to a random part of the country away from your support. Self fund some more 'essential courses' and life support training. Pay some more insurance. Pay some more GMC fees. Note - not earning the 'mega bucks' just yet, and still paying that cracking student loan.
Do this for a minimum of 3 years, then start work as a GP, hopefully able to stick around in one place for a while.
At any point - exams, job applications expect to have hiccups. Sadly I think that the UCAS deadline has already closed this year, but for those who are interested then applications close on 15th October 2021 for Autumn 2022 entry).
There's a good breakdown of the costs in this article (although I'm pretty sure it includes cost of living which confuses matters somewhat).
www.healthmatters.org.uk/uncategorized/the-true-cost-of-becoming-a-general-practitioner/
I don't doubt that the system is not working, but the people who are in it have committed so much from themselves over many years. I have GP friends, I watch them try so hard to paper over the cracks, and become unwell themselves with stress.