ESP8266 first code help

how can I debug over the network\GPIO2?

what I need to change in the code? wire setting?

if I change my code to work with GPIO3 - will it work?

Thanks ,