I am using Visual Studio 2019 to develop a.net native application for Samsung Gear S3. I have modified the XStopWatch example. During the debugging process the debugger is displaying incorrect values and variable types. I am using the wearable-4.0-circle-x86 emulator with the following packages
nuget\packages\tizen.net\8.0.0.15631
nuget\packages\tizen.wearable.circularui\1.5.0
nuget\packages\tizenhotreloader_4\1.0.0
I have recreated the problem from the basic wearable template app.
When debugging this code (setting watches) the variable types and values listed are incorrectly
1: i = “Alert: Alert Name 2” ( clearly defined as an int)
2: a | a: error: use of undeclared identifier ‘a’ error: 1 errors parsing expression|| (defined as MyAlert)
I have recreated this in a windows console application and everything works properly
Code
public MainPage()
{
MyAlert a1 = new MyAlert("Alert Name 1");
MyAlert a2 = new MyAlert("Alert Name 2");
List<MyAlert> alertList = new List<MyAlert>();
alertList.Add(a1);
alertList.Add(a2);
int i = 0;
foreach (MyAlert a in alertList)
{
string alert = a.ToString();
Console.WriteLine(alert);
}
for (i = 0; i < alertList.Count; i++)
{
string alert = alertList[i].ToString();
Console.WriteLine(alert);
}
InitializeComponent();
}
}
public class MyAlert
{
public string Name { get; set; }
public MyAlert(string n)
{
Name = n;
}
public override string ToString()
{
//return base.ToString();
return "Alert: " + Name;
}
}