Examples of using "何をやってるんだ" in a sentence and their english translations:
I was so shocked.
- What're you doing? - What are you guys doing?