How to: Debug an ActiveX Control

 

The new home for Visual Studio documentation is Visual Studio 2017 Documentation on docs.microsoft.com.

The latest version of this topic can be found at 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.

ActiveX Controls
Testing Properties and Events with Test Container
COM and ActiveX Debugging
Debugging in Visual Studio

Show: