//──────────────────────────────────────── /// <summary> /// 内容をデバッグ出力します。 /// </summary> public void CreateMessage_Debug(Log_Reports log_Reports) { Log_Method log_Method = new Log_MethodImpl(0); Log_Reports d_Logging_Dammy = new Log_ReportsImpl(log_Method); log_Method.BeginMethod(Info_MiddleImpl.Name_Library, this, "CreateMessage_Debug",d_Logging_Dammy); // // //ystem.Console.WriteLine(this.GetType().Name + "#DebugWrite: 【デバッグ出力】 project要素の個数=[" + this.Items.Count + "]"); foreach (MemoryAatoolxml_Editor aatool_Editor in this.Dictionary_Item.Values) { //ystem.Console.WriteLine(this.GetType().Name + "#DebugWrite: 【デバッグ出力】 project名=[" + st_Project.Name + "]"); aatool_Editor.WriteDebug_ToConsole(aatool_Editor.Dictionary_Fsetvar_Configurationtree, log_Reports); } // // d_Logging_Dammy.EndCreateReport(); log_Method.EndMethod(d_Logging_Dammy); if (!d_Logging_Dammy.Successful) { log_Method.WriteDebug_ToConsole(d_Logging_Dammy.ToText()); } }
//──────────────────────────────────────── /// <summary> /// デバッグ出力。 /// </summary> public void WriteDebug_ToConsole() { Log_Method log_Method = new Log_MethodImpl(0); Log_Reports d_Logging_Dammy = new Log_ReportsImpl(log_Method); log_Method.BeginMethod(Info_MiddleImpl.Name_Library, this, "WriteDebug_ToConsole",d_Logging_Dammy); // // if (log_Method.CanInfo()) { log_Method.WriteInfo_ToConsole("要素数=[" + this.dictionaryExpression_Item.Count + "]"); // 項目(キーと値)の列挙 foreach (KeyValuePair<string, Expression_Node_String> kvp in this.dictionaryExpression_Item) { if (null == kvp.Value) { log_Method.WriteInfo_ToConsole(" [" + kvp.Key + "]=空っぽ"); } else { if (kvp.Value is Expression_Node_Filepath) { // ファイルパス型。 // bug: 絶対パスでない場合、空白になるので、SHumanInput で取得することになるはず。 log_Method.WriteInfo_ToConsole(" [" + kvp.Key + "]=P型[" + kvp.Value.Execute4_OnExpressionString(EnumHitcount.Unconstraint, d_Logging_Dammy) + "] / SHumanInput=[" + ((Expression_Node_Filepath)kvp.Value).Humaninput + "]"); } else { log_Method.WriteInfo_ToConsole(" [" + kvp.Key + "]=[" + kvp.Value.Execute4_OnExpressionString(EnumHitcount.Unconstraint, d_Logging_Dammy) + "]"); } } } } // // log_Method.EndMethod(d_Logging_Dammy); d_Logging_Dammy.EndLogging(log_Method); if (!d_Logging_Dammy.Successful) { log_Method.WriteDebug_ToConsole(d_Logging_Dammy.ToText()); } }
//──────────────────────────────────────── /// <summary> /// デバッグ出力。 /// </summary> public void WriteDebug_ToConsole() { Log_Method log_Method = new Log_MethodImpl(0); Log_Reports log_Reports_Dammy = new Log_ReportsImpl(log_Method); log_Method.BeginMethod(Info_MiddleImpl.Name_Library, this, "DebugWrite",log_Reports_Dammy); // // log_Reports_Dammy.BeginCreateReport(EnumReport.Dammy); log_Method.WriteInfo_ToConsole("コントロールの一覧を出力。総数=[" + this.dictionary_Item.Values.Count + "]"); int nCount = 1; this.ForEach_Children(delegate(string sKey, Usercontrol fcUc, ref bool bRemove, ref bool bBreak) { if (null == fcUc) { log_Method.WriteInfo_ToConsole("(" + nCount + ")ヌル"); goto end_fc; } log_Method.WriteInfo_ToConsole("(" + nCount + ")" + fcUc.ControlCommon.Expression_Name_Control.Execute4_OnExpressionString(EnumHitcount.Unconstraint, log_Reports_Dammy)); // fcUc.ControlCommon.Configurationtree_Control は、ヌルのことがある。 //foreach (S_Event s_event in fcUc.ControlCommon.Configurationtree_Control.S_EventDictionary.Values) //{ // // デバッグ出力 // //ystem.Console.WriteLine(this.GetType().Name + "#DebugWrite: アクション数=[" + s_event.S_ActionList.Items.Count + "]"); // foreach (S_Action s_action in s_event.S_ActionList.Items) // { // // // // アクション // // // // デバッグ出力 // //ystem.Console.WriteLine(this.GetType().Name + "#DebugWrite: アクション=[" + s_action.SType + "] 引数数=[" + s_event.S_ActionList.Items.Count + "]"); // foreach (S_Arg s_param in s_action.S_Args.Items.Values) // { // // // // 引数 // // // if (s_param.S_ArgEnum == S_ArgEnum.PARAM_ACTION) // { // S_Action s_parentAction = (S_Action)s_param.Parent; // // デバッグ出力 // //ystem.Console.WriteLine(this.GetType().Name + "#DebugWrite: param-action要素=[" + s_param.SNodeName + "] 子引数数=[" + s_parentAction.S_Args.Items.Count + "]"); // foreach (S_Arg s_param2 in s_parentAction.S_Args.Items.Values) // { // // デバッグ出力 // //ystem.Console.WriteLine(this.GetType().Name + "#DebugWrite: param-actionの子引数=[" + s_param2.SNodeName + "]"); // // 値=[" + oAction2.OValue + "] // } // } // else // { // // デバッグ出力 // //ystem.Console.WriteLine(this.GetType().Name + "#DebugWrite: 引数=[" + s_param.SNodeName + "] "); // //値=[" + oArg.OValue + "] // } // } // } //} end_fc: nCount++; }); // // log_Reports_Dammy.EndCreateReport(); log_Method.EndMethod(log_Reports_Dammy); if (!log_Reports_Dammy.Successful) { log_Method.WriteDebug_ToConsole(log_Reports_Dammy.ToText()); } }