Closed zmrbak closed 1 month ago
Ahhh. I see the problem. We compile in RELEASE mode which removes all calls to Debug.*
I think we can use something similar to what‘s proposed here: https://stackoverflow.com/a/9987984
I created another converter TraceConverter
which uses Trace.WriteLine instead of Debug.WriteLine. See #55.
Source Code:
namespace ValueConverters { public class DebugConverter : SingletonConverterBase
{
protected override object Convert(object value, Type targetType, object parameter, System.Globalization.CultureInfo culture)
{
Debug.WriteLine("DebugConverter.Convert(value={0}, targetType={1}, parameter={2}, culture={3}",
value ?? "null",
(object)targetType ?? "null",
parameter ?? "null",
(object)culture ?? "null");
}
The Decompiled code of DebugConverter in the Nuget Package:
namespace ValueConverters { public class DebugConverter : SingletonConverterBase
{
protected override object Convert(object value, Type targetType, object parameter, CultureInfo culture)
{
return value;
}
}