How to debug VB6 ActiveX component?

1k Views Asked by At

I have a VB6 ActiveX EXE which is being called from another desktop application. When I launch my desktop application, I can see the ActiveX exe listed in the process manager. How do I debug this ActiveX component from within the VB6 IDE?

2

There are 2 best solutions below

6
On BEST ANSWER

Load your ActiveX exe project into the vb6 IDE. Set your breakpoints as desired. Press F5 (or use the mouse to click the start button icon).

Then start the desktop application. When it instantiates your application, it'll connect to the copy running in the IDE. Note that you will not see the ActiveX exe show up in task manager.

0
On

We have to unregister the ActiveX exe from all the places and make sure there is no entry in the registry.

Search registry with activex exe name,If there is any entry in registry delete it manually.

Otherwise test application will trigger the activex instead of the one that is running from IDE