A casual colloquial expression meaning 'What is it?' or 'What's going on?', used in informal contexts.
夜遅くにドアをノックされて、僕は『何だい?』と声を出した。
Someone knocked on the door late at night and I called out, 'What is it?'
友達に急に怒られて、『何だい、どうしたんだよ?』と聞いた。
When my friend suddenly got angry, I asked, 'What's up, what's the matter?'
子供が泣いているのを見て、母親が『何だい?痛いの?』と優しく尋ねた。
Seeing the child cry, the mother kindly asked, 'What's the matter? Does it hurt?'