How to: Debug an ActiveX Control

Note

The dialog boxes and menu commands you see might differ from those described in Help depending on your active settings or edition. To change your settings, choose Import and Export Settings on the Tools menu. For more information, see Customizing Development Settings in Visual Studio.

To debug your ActiveX control, you must specify a container (executable) for the control to run in.

To specify a container for the debug session

  1. In Solution Explorer, select the project.

  2. From the View menu, choose Property Pages.

  3. In the Project Property Pages dialog box, open the Configuration Properties folder, and select Debugging.

  4. Under the Debugging category, locate the Command property.

  5. Specify the path name for the container. For example, C:\Program Files\Internet Explorer\IEXPLORE.EXE.

  6. If you specify Internet Explorer as the container and you are using Active Desktop, type /new in the Command Arguments box.

  7. Click OK.

    If you do not specify a container in the Project Property Pages dialog box, you can specify the container when you begin debugging. When you select an execution command to start debugging, the Executable for Debugging Session Dialog Box appears. Specify the path name of the container in the dialog box.

See Also

Tasks

Testing Properties and Events with Test Container

Other Resources

ActiveX Controls

COM and ActiveX Debugging

Debugging in Visual Studio