It simply means "到底“ in Chinese.^^
= What on earth are you doing?("on earth" is often found in British English^^)
= What in the world are you doing?
= What the hell are you doing?
Also it can be used in a negative sentence.
도대체 무슨말인지 하나도 모르겠다.
= I don't understand what you are talking about.