title: Using logger.exe to sniff system calls
body: <p>I have an application that uses some serial port and runs some system calls, eg <code>EscapeCommFunction</code> and I want to debug it. Basically I want the closest I can get to <code>strace</code> on linux. I found that the best candidate seems to be <a href="https://msdn.microsoft.com/en-us/library/windows/hardware/ff560123(v=vs.85).aspx?f=255&amp;MSPPError=-2147217396" rel="noreferrer">logger.exe</a> but I can't figure out how to use it.</p>
  
  <p>I tried calling</p>
  
  <pre><code>logger.exe &lt;application&gt; &lt;arg1&gt; &lt;arg2&gt; &lt;arg3&gt;
  </code></pre>
  
  <p>And tried all combinations that made sense to me in the dialog that appeared. The result was always the same: The program finished successfully and no output on the Logger window or any log files were created even after I closed logger.</p>