title: Output System.Diagnostics.Debug to Console
body: <p>I want to get output from <code>System.Diagnostigs.Debug</code> in NET Core. Any way is appreciated, but the best I would like to see the output from <code>Debug</code> in Console. I try to use such code:</p>
  <pre><code>TextWriterTraceListener myWriter = new 
     TextWriterTraceListener(System.Console.Out);
  Debug.Listeners.Add(myWriter);
  </code></pre>
  <p>But receive an error:</p>
  <blockquote>
  <p>'Debug' does not contain a definition for 'Listeners'</p>
  </blockquote>
  <p>What am I missing? Is it possible to use <code>System.Diagnostics.Debug</code> in .NET Core?</p>
  <p>I use <code>netcoreapp1.0</code> framework.</p>
  <p>UPDATE:
  For Windows I have found a tool DebugView, which shows the output from <code>Debug</code>, <a href="https://technet.microsoft.com/en-us/sysinternals/bb896647.aspx" rel="nofollow noreferrer">https://technet.microsoft.com/en-us/sysinternals/bb896647.aspx</a>, but the question is still actual for Linux and <code>Console</code> output.</p>