ActiveX method written by Internet Explorer 8 (IE8) debugging (Debug) Delphi 7

Source: Internet
Author: User

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.

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.