2 answers
The secret is to start early and break everything into small chunks - it feels way less overwhelming when you see that each part is manageable. Try not to leave everything for the last week, because that's guaranteed to drive you crazy. Talk to your advisor from the start about what they expect, so you avoid nasty surprises along the way and can adjust things as needed.
The thing that helped me most was having someone to discuss ideas with before putting them on paper - like, I'd talk to a classmate about what I was thinking of writing and it would already be so much clearer in my head what worked and what didn't make sense. When you write alone, it's easy to get stuck going in circles, but talking out loud you spot the holes in your argument right away. Plus, I'd set smaller deadlines for each section - not waiting to have everything done, just one chapter here, a revision there - and that took away that feeling that the whole thing was an impossible mountain to climb.
Your answer
Log into answer.