My boyfriend can't deal with my anxiety

We almost broke up tonight because he couldn't handle me anymore. I was crying and screaming into the bed and he said okay make a deal with me, we can stay together if you promise to see a doctor and psychologist this week. So I promised. I'm really scared. He's not happy with me but clearly he loves me because he's trying to get me to help myself. I hate how it's effected our relationship so much. He gets annoyed when I get anxious which kinda made me worse, but I think that's better than him giving into it and nothing changing. Do you think this is good?