Largely we debug our ASP.NET web application from Visual Studio. Visual Studio has its own ASP.NET tool, which is sufficiently skilled to run and debug your sites inside Visual Studio. But, if your site is hosted on IIS and you need to debug that site straightforwardly, how would you debug it? When we have locales on IIS, the Worker Process (w3wp.exe) is utilized to run the web application. We have to connect to this specific procedure from Visual Studio to debug the web application.
Step by Step
1.Click the Tools menu in Visual Studio and click the item Attach Process.
2.Then search through the Available Processes with the name w3wp.exe.
3.Click the Attach button. Now you can watch your break point while doing relevant action in web page.
That was the steps to Debug ASP NET Web Application Hosted in IIS Using Visual Studio. Hopefully it will help your problem.