I’m trying to debug Sitecore 6 ASP.NET code using Visual Studio 2008 (Windows Server 2003 OS). I am trying to get breakpoints to work. I tried setting the breakpoint and then on VS, debug -> attach to process.. -> IIS web server process, but nothing happens when I browse to a certain .aspx page where a breakpoint is located at the beginning of the Sitecore.Web.UI.WebControl.DoRender method.
I tried checking both client-side and server-side debugging settings on the website’s properties -> configuration -> debugging but nothing changes. I tried stopping the website, recycling the appPool and restarting, re-attaching the debugger and nothing happens.
Does anyone have a better idea?
Make sure you are trying to attach to the correct process. It is called w3wp.exe in IIS 6+.