Debugging Sitecore 6 with Visual Studio 2008

I am trying to debug Sitecore 6 ASP.NET code using Visual Studio 2008 (Windows Server 2003). I am trying to get breakpoints to work. I tried setting a breakpoint and then to VS, debug -> attach to process.. -> IIS web server processbut nothing happens when I go to a specific .aspx page where the breakpoint is at the beginning of the method Sitecore.Web.UI.WebControl.DoRender.

I tried to check the debugging options on the client side and on the server side on the website properties -> configuration -> debugging, but nothing changed. I tried to stop the website by restarting appPool and restarting it, reconnecting the debugger, and nothing happens.

Does anyone have a better idea?

+3
source share
2 answers

Make sure you are trying to connect to the correct process. It is called w3wp.exe in IIS 6+.

+3
source

On the page, by code, call the command "OnLoad Page

Debug.Fail();

or

Debug.Assert(false);

, then open this page and wait for a message from Debuger and join visual studio. If this does not appear, then you are in release mode and you need to change your web.config

If you have some error with your www service, restart the iis-admin service, not just www. With iisAdmin, www reloads, but several times the debugger does not attach only with a restart of www.

Hope this helps you.

0
source

Source: https://habr.com/ru/post/1756335/


All Articles