关于在ie8下用vs2005运行调试,自动停止的问题

来源:互联网 发布:招聘网络推广员 编辑:程序博客网 时间:2024/05/26 12:04

网络上找到的解决方案,真不知这些人是怎么发现这样能解决的

 

Hi,

IE 8 has a feature called Loosely-Coupled Internet Explorer (LCIE) which results in IE running across multiple processes.
http://www.microsoft.com/windows/internet-explorer/beta/readiness/developers-existing.aspx#lcie

Older versions of the Visual Studio Debugger get confused by this and cannot figure out how to attach to the correct process.  You can work around this by disabling the process growth feature of LCIE.  Here's how:

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

Since you are running on Windows Server 2003, this is all you should need to do.  If you run into the same problem on Vista or newer, you will also need to turn off protected mode.

Thanks.


Brad Sullivan - Program Manager - Visual Studio Debugger