Преглед изворни кода

Отладочная информация

Саша Лебедева пре 2 година
родитељ
комит
621a1c79cf
2 измењених фајлова са 54 додато и 0 уклоњено
  1. 43 0
      Examen31P_LebedevaAF/Debug.cs
  2. 11 0
      Examen31P_LebedevaAF/Program.cs

+ 43 - 0
Examen31P_LebedevaAF/Debug.cs

@@ -0,0 +1,43 @@
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Text;
+using System.Threading.Tasks;
+using System.Diagnostics;
+using System.IO;
+
+namespace Examen31P_LebedevaAF
+{
+    internal class Debugg
+    {
+        public static void DebTr()
+        {
+            Trace.Listeners.Add(new TextWriterTraceListener("Debug.txt"));
+            Debug.Indent();
+            Trace.Indent();
+            Debug.WriteLine("Программа запущена: {0}", DateTime.Today);
+            Trace.WriteLine("Программа запущена: {0}", Convert.ToString( DateTime.Today));
+            Debug.Flush();
+            //Debug.Indent();
+            //Trace.Listeners.Add(x);
+            //Debug.WriteLine(st);
+            //Debug.Flush();
+            //x.Close();
+
+            //string location = Environment.CurrentDirectory;
+            //location = location.Remove(location.Length - 6, 6);
+            //location = location.Insert(location.Length, "Diagnostic.txt");
+            //TextWriterTraceListener tr = new TextWriterTraceListener(File.AppendText(location));
+            //Debug.Listeners.Add(tr);
+            //Debug.WriteLine(s);
+            //Debug.Flush();
+            //tr.Close();
+
+            //TextWriterTraceListener x = new TextWriterTraceListener(File.AppendText("diagnostic.txt"));
+            //Trace.Listeners.Add(x);
+            //Debug.WriteLine(st);
+            //Debug.Flush();
+            //x.Close();
+        }
+    }
+}

+ 11 - 0
Examen31P_LebedevaAF/Program.cs

@@ -1,3 +1,14 @@
 using System;
+using System;
+using System.Diagnostics;
+using System.IO;
+
+class Program
+{
+    public static void Main()
+    {
+    }
+}
+