I thought to be a doctor.

I thought to be a doctor.

What is the meaning of the sentence?

I think it means “I considered becoming a doctor”. This use of “thought to be” is not common in modern English (at least, not in my experience).