views:

49

answers:

2

Hi,

I'm trying to debug sitecore 6 asp.net code using visual studio 2008 (Windows server 2003 OS), concretely 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 where a breakpoint is located at the beginning of the Sitecore.Web.UI.WebControl.DoRender method

I tried setting on the website properties home directory->configuration->debugging and check both client-side and server-side debugging but nothing changes. Tried stopping the website, recycling the appPool and restarting, reataching the debugger and nothing happens

anyone has a better idea?

A: 

On a page, on the code behinde call the command the Page OnLoad

Debug.Fail();

or

Debug.Assert(false);

then open this page, and wait for the Message from Debuger to appear and attach to visual studio. If not appear then its means that you are on release mode and you need to modify your web.config

If you have some error with your www service, then restart the iis-admin service and not only the www. With the iisAdmin www restarts also but some times debugger not attach with only www restart.

Hope this help you.

Aristos
+1  A: 

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

Yan Sklyarenko
that was it! i was attaching to mmc (IIS manager) but i didn't read the 'manager' part. thanks!
lurscher