Xcode iphone debug

I saw a guy on youtube debugging camera functionality with a connected iphone. This I can do.

But he had a mirror of the iphone screen on his monitor screen. This looks really useful, so how do I do this...
Xcode iphone debug
 
 
Q