What it means
ところだった expresses that an action was about to happen at a past point in time. It often describes an action that was on the verge of occurring, and context may show whether it actually happened afterward. The pattern is commonly used with a verb in the dictionary form and can also appear in situations where something nearly happened.
Usage note
The preceding verb form determines the meaning of ところだ and ところだった. Specifically, dictionary form + ところだった means that an action was about to occur or nearly occurred; other verb forms before ところだった can express different stages of an action.
How to use it
私は駅を出るところでした。
I was just about to leave the station.
私は駅を出るところだった。
I was just about to leave the station.
