Search code examples
vb6activex-exe

How to debug VB6 ActiveX component?


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?


Solution

  • 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.