|
@@ -0,0 +1,22 @@
|
|
|
+using System;
|
|
|
+using System.Collections.Generic;
|
|
|
+using System.Linq;
|
|
|
+using System.Text;
|
|
|
+using System.Threading.Tasks;
|
|
|
+using System.Diagnostics;
|
|
|
+
|
|
|
+namespace ExamGromov
|
|
|
+{
|
|
|
+
|
|
|
+ public class DebugAndTrace
|
|
|
+ {
|
|
|
+ public static void Otladka()
|
|
|
+ {
|
|
|
+ Trace.Listeners.Add(new TextWriterTraceListener("Debug.txt"));
|
|
|
+ Debug.Indent();
|
|
|
+ Trace.Indent();
|
|
|
+ Debug.WriteLine("Открытие программы\n");
|
|
|
+ Trace.Flush();
|
|
|
+ }
|
|
|
+ }
|
|
|
+}
|