ActiveX method written by Internet Explorer 8 (IE8) debugging (Debug) Delphi 7
Debugging a troublesome and weird error for colleagues (ActiveX running Delphi 7 in IE8/chrome4 causes an inexplicable environment-related AV error when calling the WebService method, but there are still some things worth recording in the process. One of them is how to debug ActiveX in IE8 with D7:
The low security settings of IE8 are no longer cumbersome here, and it is impossible to Run ActiveX.
1. For Activex, you need to set Project Options> linker> include remote debug symbols. The options are compiler> use DEBUG dcus.
2. After the compilation is successful, start IE8 separately (we recommend that you do not start the homepage so that you can locate the process) and do not start the pages to be debugged.
3. Open the Run-> attach to process in D7. You should see an iexploer.exe process. Remember these PIDs.
4. Create a tab in IE8 to access the relevant debugging page, such as http: // 127.0.0.1/tobetested. asp.
5. Return to attach to process in D7 and refresh it. You can see that an iexploer.exe process is added, select it, and attach it.
6. Set the breakpoint to continue running F9.
7. Trigger the code to be debugged on the IE8 webpage
8. D7 should be stopped on the appropriate breakpoint. OK
Later, I checked the online statement and set IEAS a single process. I did not try it. The above method actually provides a common additional process debugging method.