Write log into debug window in Debug mode OUT-428
authorThomas
Thu, 03 May 2018 17:23:14 +0200
branchOUT-428
changeset 2163a0204de8d671
parent 2162 601f75ac3f51
child 2165 899d6c3c8eeb
Write log into debug window in Debug mode
Log.cs
     1.1 --- a/Log.cs	Thu May 03 17:21:58 2018 +0200
     1.2 +++ b/Log.cs	Thu May 03 17:23:14 2018 +0200
     1.3 @@ -1,4 +1,5 @@
     1.4  ´╗┐using System;
     1.5 +using System.Diagnostics;
     1.6  using System.IO;
     1.7  
     1.8  namespace pEp
     1.9 @@ -135,6 +136,9 @@
    1.10                          }
    1.11  
    1.12                          Log.logWriter.WriteLine(text);
    1.13 +#if DEBUG
    1.14 +                        Debug.WriteLine(text);
    1.15 +#endif
    1.16  
    1.17                          Log.logLineCount++;
    1.18