[verb (dict form)] + ところだった
Often preceded by もう少しで, 危うく, もうちょっとで to emphasize the near-miss.
The grammar pattern ところだった expresses that something almost happened or that someone was just about to do something. It describes a situation that was on the verge of occurring but ultimately did not happen.
The most common usage is to describe a situation that nearly occurred – often something undesirable – but was narrowly avoided. This carries a sense of relief or alarm.
This usage is frequently paired with adverbs like もうすこし少しで (a little more and…), あやうく危うく / あやうく (narrowly), or もうちょっとで to emphasize how close the situation was.
ところだった can also describe an action someone was on the verge of doing when something else intervened or the situation changed.
The pattern is formed with the dictionary form of a verb followed by ところだった:
Verb[dictionary form] + ところだった
The polite form is ところでした:
When describing close calls, the event described by the verb did not actually happen. The speaker is looking back and reflecting on how close they came to that outcome. This is different from ところだ (non-past), which describes something that is about to happen right now.