Debug a tiny IoT device just like you would debug an application on a full PC. You can easily debug your code from within Visual Studio over USB or Serial. Set breakpoints, step through code, and examine variables without the need for specialized hardware or software.
On power up, the system checks the MOD pin to determine the debug interface, USB or Serial.
Information on using the debugger can be found in Microsoft's documentation here.