Did I miss something? I think Gus wanted a video where it shows how you are debugging and while stepping in the code in Visual Studio, you are able to print to the com port as well. Maybe step in code and see how it is printing a count variable for example 0, 1, 2…
Just played with this option today to see how it works
And i can see the results poping up into the comm terminal and i can walk trough the code.
But a Debug.Write(‘test’); that i added is not shown,
using System;
using System.Threading;
using Microsoft.SPOT;
using Microsoft.SPOT.Hardware;
using GHIElectronics.NETMF.FEZ;
using GHIElectronics.NETMF.USBClient;
using GHIElectronics.NETMF.Hardware;
namespace USBClient_Example
{
public class Program
{
public static void Main()
{
OutputPort LED = new OutputPort((Cpu.Pin)FEZ_Pin.Digital.LED, false);
USBC_CDC cdc = USBClientController.StandardDevices.StartCDC_WithDebugging();
// Send "Hello world!" to PC every second. (Append a new line too)
byte[] bytes = System.Text.Encoding.UTF8.GetBytes("Hello world!\r\n");
while (true)
{
LED.Write(false);
cdc.Write(bytes, 0, bytes.Length);
Debug.Print("test...");
Thread.Sleep(1000);
}
}
}
}
I expected the Debug.Print message in the output box of Visual C# to see. But it does not show at all.