Visual Basic Concepts

Testing Your DHTML Application

See Also

When you debug a DHTML application, you have the full Visual Basic development environment at your disposal. You can use all the tools available in Visual Basic — breakpoints, watch variables, debug statements, and so on — to debug your project.

Note   A file named VB6DEBUG.DLL enables you to debug your DHTML application across processes. Do not delete this file or you will not be able to test your application.

The settings in the Debugging tab of the Project Properties dialog box determine whether the system waits for you to tell it what to do when you go into run mode or automatically starts a page designer you specify, displaying its page in the browser. You can also indicate whether to open a new instance of Internet Explorer or use an existing instance.

When Visual Basic runs the application, it inserts a METADATA tag and an OBJECT tag into the body of each HTML page used in your application. The OBJECT tag is used to download the HTML page when the application is deployed. It includes two parts — a classID for your application, and a CODEBASE attribute that tells the browser where to find your application's .cab file. Visual Basic temporarily fills in the CODEBASE attribute during debugging so that your project can run; this value is removed once debugging stops. The final value of the CODEBASE attribute is filled in when you package the application for deployment using the Package and Deployment Wizard.

A sample OBJECT tag is shown below:

<BODY>
   <!--METADATA TYPE="MsHtmlPageDesigner" startspan-->
   <OBJECT codebase=DHTMLProject.CAB#Version1,0,0,0 id="DHTMLPage1" 
   classid="clsid:C01F6165-E8DB-11D1-AA99-00C04FA34731" width=0 height=0>
   </object>
   <!--METADATA TYPE="MsHtmlPageDesigner" endspan-->

DHTML Debugging Tips

Be aware of the following things as you debug and test your DHTML applications:

For More Information   See "Debugging Your Code and Handling Errors" in the Programmer’s Guide for more information on how to test and debug your applications.