Debug on IIS instead of WebDev server
I am developing a web application. My code worked fine on the WebDev server in VS2010. Then, I hosted it on remote IIS, because my windows 7 home basic doesn't have IIS, and almost all code fails. So I had to rewrite it using helpers for links, ResolveUrl and many other functions.
How can I host an application while debugging on remote IIS (not on WebDev or local IIS) automatically?
You can install IIS Express. IIS express is more mature in terms of emulating real IIS 7. For more information on IIS express refer this link. HTH
You might consider developing you application using MebMatrix, which is a free development environment that includes IIS Express. It's easy to learn and doesn't require Visual Studio.