[Conditional("DEBUG")]for conditional execution between DEBUG and RELEASE modes.
[Conditional("DEBUG")] private static void DEBUG_DumpCanSendMessage() { Console.WriteLine(">> " + Global.CanMsgSend.ID.ToString("X03") + ":" + " " + Global.CanMsgSend.DATA[0].ToString("X02") + " " + Global.CanMsgSend.DATA[1].ToString("X02") + " " + Global.CanMsgSend.DATA[2].ToString("X02") + " " + Global.CanMsgSend.DATA[3].ToString("X02") + " " + Global.CanMsgSend.DATA[4].ToString("X02") + " " + Global.CanMsgSend.DATA[5].ToString("X02") + " " + Global.CanMsgSend.DATA[6].ToString("X02") + " " + Global.CanMsgSend.DATA[7].ToString("X02") ); } [Conditional("DEBUG")] private static void DEBUG_DumpCanReceivedMessage() { Console.WriteLine("<< " + Global.CanMsgReceived.ID.ToString("X03") + ":" + " " + Global.CanMsgReceived.DATA[0].ToString("X02") + " " + Global.CanMsgReceived.DATA[1].ToString("X02") + " " + Global.CanMsgReceived.DATA[2].ToString("X02") + " " + Global.CanMsgReceived.DATA[3].ToString("X02") + " " + Global.CanMsgReceived.DATA[4].ToString("X02") + " " + Global.CanMsgReceived.DATA[5].ToString("X02") + " " + Global.CanMsgReceived.DATA[6].ToString("X02") + " " + Global.CanMsgReceived.DATA[7].ToString("X02") ); }