该框架对于调试和无调试有不同的编码键,但它总是返回 true,所以我更改了此文件:
namespace eTrans.Debugging
{
public static class DebugHelper
{
public static bool IsDebug
{
get
{
if (System.Diagnostics.Debugger.IsAttached)
{
return true;
}
else
{
return false;
}
}
}
}
}