title: How to debug a web service written in PHP?
body: <p>I've got a nice question here :)</p>
  
  <p>I need to debug my web service written in PHP. Its client is written in C#.<br>
  After a couple of days of searching I realized this is not an easy task. At least it seems nobody knows the right solution.</p>
  
  <p>What is the problem in, actually?<br>
  We have 2 popular PHP debugging libraries : PHP Debugger from NuSphere and XDebug extension.<br>
  The problem is they both are controlled from URL query string or with the help of cookies. For example, to enable debugging with PHP Debugger you need to add ?DBGSESSID=xxx parameter to your URL or to have DBGSESSID cookie.<br>
  But when your web service is called from the external client, the client doesn't have a cookie and doesn't add DBGSESSID url parameter. So how can we debug in this situation?</p>
  
  <p><strong>PS. I don't want to write to log files, see request and response headers/data or something like this. I want normal step-by-step debugging and breakpoints.</strong></p>
  
  <p>Anyone?</p>