HOWTO: Debug an ActiveX control in the Internet Explorer 4.0 browser
Article ID: 167715 Last Update Date: October 6, 2003 Version: 1.0
The release number of this article has been CHS167715
This page
Summary More Information Reference
summary
In Internet Explorer 4.0 integrated browser mode, the Windows housing and web browsers run in the same process space. This brings difficulties to the programmers of the debug control. This article lists how to reliably debug a range of steps that reliably debug the ActiveX control in the Visual C debugger running in the integrated browser mode.
This article relates to how to debug components created in Visual C and Visual Basic.
Remarks: In addition, you can specify "Browse in the new process". To do this, click Internet Options on the View menu. Click the Advanced tab. Next, select "Browse in a new process".
More information
1. Suppose there is an ActiveX control project, and its debug symbols and source files are available, load the appropriate items into the Visual C debugger. For components written with Visual Basic, make sure that the component contains debugging information:
a. Load the project into Visual Basic 5.0. b. From the File menu, select "Generate
166275 How to: Try the Machine Code Visual Basic Components in VC
2. Set the breakpoint correctly in the control code. 3. Specify Explorer.exe as executables used to debug. In Visual C 5.0, you can set up from the Project menu, and the method is to click Settings and select the Debug tab. Under "Executable Files Used to Debug Session", specify Explorer.exe or click the arrow and select "Default web browser". 4. Under "Program Parameters", type "-new". This will initiate the new Internet Explorer process that the debugger can join, which is opposite to the new thread. Another option is to perform steps 1 through 3, then continue to perform the following steps: On the Start menu of the Windows taskbar, select Close System. 5. When you appear, click Close All Programs and Log in with Other Users, and then hold down the Ctrl Alt Shift key and click No. In this way, the Windows shell including the taskbar will be turned off, but the Windows session will not end. To switch between applications, use the Alt Tab key. To start another application, press CTRL Alt Delete to start with the Task Manager. 6. Once the Windows shell is completely closed, start the debug session and ignore a warning that is unavailable for the debug symbol of Explorer.exe. 7. Open a browser or resource manager window and specify the address of the HTML page of the reference control. After loading the page, the focus will jump to the debugger, and the debugger will pause at the first breakpoint set. After debugging the control, you can use the Task Manager to restart the housing. 1. Under Windows 95, double click on any location of the desktop to open the Task Manager. Under Windows NT, press CTRL Alt Delete and click the Task Manager button. 2. On the File menu of Task Manager, select "Run", then enter the path of Explorer.exe to restart the housing.
reference
In Visual C 5.0 Books Online, please visit
Platform, SDK and DDK Documentation / Platform SDK /
User Interface Services / Shell / Shell Extensions / About Shell Extensions / Installing Handlers On Windows NT / Debugging Tips