How to: Debug an ActiveX Control
Applies to: Visual Studio Visual Studio for Mac
Note
This article applies to Visual Studio 2017. If you're looking for the latest Visual Studio documentation, see Visual Studio documentation. We recommend upgrading to the latest version of Visual Studio. Download it here
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 Reset settings.
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
In Solution Explorer, select the project.
From the View menu, choose Property Pages.
In the Project Property Pages dialog box, open the Configuration Properties folder, and select Debugging.
Under the Debugging category, locate the Command property.
Specify the path name for the container. For example, C:\Program Files\Internet Explorer\IEXPLORE.EXE.
If you specify Internet Explorer as the container and you are using Active Desktop, type
/new
in the Command Arguments box.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.