title: How is Visual Studio or Rider reading messages written using System.Diagnostics.Trace.Write?
body: <p>My understanding is that you need to <a href="https://stackoverflow.com/questions/1159755/where-does-system-diagnostics-debug-write-output-appear">register a listener</a> to the trace output, but how would that even look like? Is there a trace stream associated with each execution of the application that Visual Studio/Rider listens to?</p>
  
  <p>We can rephrase this question by asking:<br>
  How to write a simple console app that executes another application and listen to its trace output.</p>