Probably there is better way to debug is attaching to the process w3wp. The benefit of it is you can configure local IIS and local dns file (Windows\System32\drivers\etc\hosts) the way you want to simulate your production environment/actual domain. You can install SSL certificate on your local IIS etc.