Debugging COM and ActiveX
Important This document may not represent best practices for current development, links to downloads and other resources may no longer be valid. Current recommended version can be found here. ArchiveDisclaimer

Debugging COM and ActiveX

This section provides tips on debugging COM applications and ActiveX controls.

In This Section

Debugging COM Servers and Containers
Mentions special considerations when debugging COM applications. Issues include: debugging a COM server and container using two projects within the same solution, tracing into calls that go across process boundaries, setting breakpoints in callback functions, and stepping across and into containers and servers.
Debugging COM Servers
Discusses two unique problems you can encounter when debugging COM server applications: how to proceed if you do not have debugging information for your container application or do not need to see symbolic information for the container and debugging an SDI server application.
Debugging COM Clients and Servers Using RPC Debugging
Provides information on using RPC (remote procedure call) debugging to debug COM client/server applications. Information includes: enabling RPC debugging, the two types of remote procedure calls used by RPC debugging (in-process and out-of-process), and how RPC debugging works with each (with example code). Applies to C/C++ only.
Debugging an ActiveX Control
Contains information on debugging ActiveX controls. This includes: specifying a container for the debug session to see how the code in your ActiveX control executes, debugging a data-bound ActiveX control, simulating a particular container, and stepping into the container's code.
Test Applications
Introduces Visual C++ test tools that allow you to test various types of ActiveX applications against existing ActiveX applications.
Viewers and Spy Programs
Lists several viewer and spy programs that enable you to examine objects and events on your computer and in memory.

Related Sections

Debugging Home Page
Provides links to the larger sections of the debugging documentation. Information includes: what's new in the debugger, settings and preparation, breakpoints, handling exceptions, edit and continue, debugging managed code, debugging Visual C++ projects, debugging COM and ActiveX, debugging DLLs, debugging SQL, and the user interface references.
Show:
© 2016 Microsoft