〜ところだった This pattern is used to say that something almost happened but didn't ("nearly ~"). It is often used after a close call, with もう少しで.
Formation
dictionary form + ところだった
| 乗り遅れる | 乗り遅れる + ところだった | 乗り遅れるところだった |
| 忘れる | 忘れる + ところだった | 忘れるところだった |
| ぶつかる | ぶつかる + ところだった | ぶつかるところだった |
Examples
寝坊して、電車に乗り遅れるところだった。
I overslept and nearly missed the train.
もう少しで車にぶつかるところだった。
I almost ran into a car.