title: How to enable WCF debugging in the code
body: <p>I have a self-hosted WCF service. I don't have an app.config file, instead all the configurations are performed at run time in the code. But I cannot figure out how to enable debugging in the code.</p>
  
  <p><strong>UPDATE</strong></p>
  
  <p>I have a VS solution with two projects:</p>
  
  <ol>
  <li>WCF service hosted in a WinForms application</li>
  <li>Simple console client consuming the service</li>
  </ol>
  
  <p>I'd like to be able to start the debugging session in Visual Studio, debug the client, set and hit breakpoints in the service application. I was able to do this when I used app.config files, but now I'd like to do the same without them.</p>