If we look at the phrases without context:

- Что ты? = "Oh, what did you say?", "Is it really so?" - doubt and wondering.

- Что тебе? - "What do you want?" (uncivil form)