Debugging OCX controls in IE8
By default, IE8 works in multiple processes, so debugging cannot be performed by default:
Disable the IE protection mode to prevent ie from opening the web page in multi-process mode. Otherwise, the IE process started by the debugger is different from the IE process on the web page and cannot be interrupted.
When changing the Registry to multi-process operations, the IE process started and the IE process loaded with OCX to be debugged are not one process, so debugging cannot be performed.
By modifying the Registry to work with a single process, you can use the debugging function as follows:
---------------------------------------
Windows Registry Editor Version 5.00
[HKEY_CURRENT_USER/software/Microsoft/Internet Explorer/main]
"Tabprocgrowth" = DWORD: 00000000
--------------------------------------------------------
Save the preceding content as IE. Reg, double-click ie. Reg, and import it to the Registry to debug it.
The above information reference: http://firefly.hpp.blog.163.com/blog/static/172080655201102101350887/