title: Unable to automatically step into the server when debugging WCF
body: <p>I get the dreaded:</p>
  
  <p><em>Unable to automatically step into the server. The remote procedure could not be debugged.This usually indicates that debugging has not been enabled on the server."</em></p>
  
  <p>Now, I have been reading that I need to add</p>
  
  <pre><code>&lt;compilation debug="true"&gt;
  </code></pre>
  
  <p>to the web.config .</p>
  
  <p>Fair enough, my problem is that my WCF service is a nettcp binding hosted in a windows process.</p>
  
  <p>Where do I add this? In the app.config of the windows service hostiung the WCF service?</p>
  
  <p>In what section? Right now my app.config for the Windows Service Host looks like this :</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8" ?&gt;
  
  &lt;configuration&gt;
  
    &lt;system.serviceModel&gt;
      &lt;services&gt;
        &lt;service name="Indexer" behaviorConfiguration="IndexerServiceBehavior"&gt;
          &lt;host&gt;
            &lt;baseAddresses&gt;
              &lt;add baseAddress="http://localhost:8000/Indexer"/&gt;
            &lt;/baseAddresses&gt;
          &lt;/host&gt;
          &lt;endpoint address="net.tcp://localhost:9000/Indexer"
                    binding="netTcpBinding"
                    bindingConfiguration="Binding1"
                    contract="WCF.IIndexer" /&gt;
        &lt;/service&gt;
      &lt;/services&gt;
      &lt;bindings&gt;
        &lt;netTcpBinding&gt;
          &lt;binding name="Binding1"
                       hostNameComparisonMode="StrongWildcard"
                       sendTimeout="00:10:00"
                       maxReceivedMessageSize="65536"
                       transferMode="Buffered"
                       portSharingEnabled="false"&gt;
            &lt;security mode="None"&gt;
              &lt;transport clientCredentialType="None" /&gt;
              &lt;message clientCredentialType="None" /&gt;
            &lt;/security&gt;
          &lt;/binding&gt;
        &lt;/netTcpBinding&gt;
      &lt;/bindings&gt;
      &lt;behaviors&gt;
        &lt;serviceBehaviors&gt;
          &lt;behavior name="IndexerServiceBehavior"&gt;
            &lt;serviceMetadata httpGetEnabled="true" httpGetUrl=""/&gt;
            &lt;serviceDebug includeExceptionDetailInFaults="False" /&gt;
          &lt;/behavior&gt;
        &lt;/serviceBehaviors&gt;
      &lt;/behaviors&gt;
  
    &lt;/system.serviceModel&gt;
  
  &lt;/configuration&gt;
  </code></pre>