I had an Activex component which was created using C# Class Library Project template. and the debugger couldn't debug it.
- Execute the page on IE.
- Once you have the page up and can see your ActiveX control, switch to Visual Studio and click on the 'Debug' menu item. Click on 'Attach to Process'.
- On the Attach to Process screen, click on 'Select...' next to the Attach to: label. Select Managed Code and click on 'OK'.
- In the Available Processes section, select 'iexplore.exe' and click on 'Attach'.
- You can now debug the code