Debugging .Net and Php
One of the most powerful features in VS.Php, is the ability to debug Php alongside other languages supported in Visual Studio. In the past, we have shown how to debug Php and Javascript in the same session. This is a very common scenario for web applications. I would also like to show a more sophisticated example where you are debugging a Php REST service and a .Net windows client application. In this example, we built a simple REST service that adds two values. Then we wrote a .Net application that uses it.
There are two main points about this demo:
- The request to the Php service has to include the DBG query string: DBGSESSID=1@clienthost:7870
- The solution must start both projects when debugging. This is necessary to enable you to debug both the .Net client code and the Php server code.
Here is the link to the screencast demo:
- juanc's blog
- Login or register to post comments