How do I say "did you see what happened?'
Your sentence along with others in answers are all correct. 
The closest idiomatic one I can think of is 你刚才看到这里出什么事了(did you see what happen here just now). In practice, it can be shortened as: 这里出什么事了? or 出什么事了?.