Debug WCF

 抓包Wcf:

使用Fiddler:http://www.spindicator.com/2012/01/using-fiddler-2-to-debug-your-wcf-net-service/

使用WireSharkhttp://geekswithblogs.net/EltonStoneman/archive/2009/01/29/debugging-soap-messages-with-wireshark.aspx

开启wcf服务的跟踪访问日志:

<system.diagnostics>

    <sources>

      <source name="System.ServiceModel"

              switchValue="Information, ActivityTracing"

              propagateActivity="true">

        <listeners>

          <add name="traceListener"

              type="System.Diagnostics.XmlWriterTraceListener"

              initializeData= "D:Log1.svclog" />

        </listeners>

      </source>

    </sources>

  </system.diagnostics>

原文地址:https://www.cnblogs.com/webJingGao/p/3169238.html