Search code examples
asp.netdebuggingvisual-studio-2005breakpoints

Can't debug ASP.NET in VS2005 won't stop at break point


I have an puzzling problem. I have a new ASP.NET web application in VS2005 that runs fairly well, but I am having a problem and would like to set a break point to see what is going on. I have compiled the project in Debug mode. I have debug=true set in the web.config. But it appears that the IDE is not attaching to the process at all. Have I overlooked something? I am using the development server and not IIS. This has never been a problem in the past, but is this time.

Have I overlooked anything? Thanks for any help.

Rob


Solution

  • I had this issue a while back with VS2005. I don't remember where I got the following instructions from (copied them to a file which I'm now copying to you) but doing the following steps worked for me. It has something to do with IE8 attaching itself to multiple processes and messing up the debugger. Word of warning, this has you editing the registry, so use at your own risk / take all your normal precautions, etc.

    1. Open RegEdit
    2. Go to HKEY_LOCALMACHINE -> SOFTWARE -> Microsoft -> Internet Explorer -> Main
    3. Add a dword under this key called TabProcGrowth
    4. Set TabProcGrowth to 0

      If you run into the same problem on Vista or newer, you will also need to turn off protected mode.

    Please note also that I was/am running XP at the time, so I did not have to use the "Vista or newer" clause there. No idea if that has any adverse effects either.