Http://www.lihuasoft.net/article/show.php? Id = 880
1. Project --> options --> compiler --> click full debug.
2. Project --> build all projects
3. Add a breakpoint to the Code to be debugged.
4. Project --> Web deployment options --> directories and URLs
(1) Target Dir (full path of the deployed OCX)
Enter your OCX release address, such as C: ccrunwww.
(2) Target URL (Virtual Path of the deployed OCX)
Enter the target address, that is, the OCX virtual path, such as http: // 192.168.0.1.
(3) HTML Dir (full path of the deployed HTML file)
Enter the address of the HTML page, such as C: ccrunwww.
5. projcet --> Web deoloy to generate HTML pages and OCX.
6. Run --> parameters --> Host application --> click browser to find IE.
7. Run --> parameters --> enter the page address generated after your web deploy, such as C: ccrunwwwmycx.htm.
8. Run --> Register ActiveX Server
9. OK, run.