If you use a mc-Demo205 or a development board you can debug over USB which uses the serial port. If you don't use one of those on USB or in every other solution you debug over the wireless connection. You can use Debug.Write(string) to debug or connect the uart to a pin and start writing to it.