title: How can I debug a ServiceStack service method?
body: <p>I am using the JsonServiceClient to test a self-hosted service to the database.  The client is receiving an empty array without the 8 records that are in the database.  My problem is that if I put a breakpoint in the Get method of the service, it never fires.</p>
  
  <p>Here is the code for the get method:</p>
  
  <pre><code>    public PracticesResponse Get(PracticesGetRequest request)
      {
          var parm = Request.QueryString.Get("source");
          var source = Uri.UnescapeDataString(parm);
  
          var response = new PracticesResponse
          {
              Practices = Repo.GetBySource(source).ToArray()
          };
          return response;
      }
  </code></pre>
  
  <p>If I put a breakpoint anywhere in the code, it never fires, so I can't tell whether my query parameter isn't being processed correctly, or my repository isn't getting wired up, or what.
  If I break execution on the line of code that calls the JsonServiceClient get method and attempt to step into it here:</p>
  
  <pre><code>var dto = Client.Get&lt;PracticesResponse&gt;("/practices?source=Desire%20%Map");
  Assert.That(dto.Practices.Length &gt; 7);
  </code></pre>
  
  <p>the debugger processes the call without stepping in and the next break is on the Assert.  </p>
  
  <p>Here is a link to <a href="https://github.com/pthalacker/ServiceStackSelfHost.git" rel="nofollow">simple Visual Studio application</a> that exhibits exactly the same behavior when I try to step into the JsonClient.Get method.</p>
  
  <p>How can I get inside this method to see what is going on?</p>