Share via


Enabling a Program to Be Debugged

Note

This article applies to Visual Studio 2015. 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

Before your debug engine (DE) can debug a program, you must first launch the DE or attach it to an existing program.

In This Section

Getting a Port
Discusses how to obtain a port as the first step to enabling a program to be debugged.

Registering the Program
Explains the next step in enabling a program to be debugged: registering it with the port. Once registered, the program can be debugged either by the process of attaching or just-in-time (JIT) debugging.

Attaching to the Program
Explains the next step:attaching the debugger to the program.

Launch-based Attaching
Describes launch-based attachment to a program, which is automatic upon launch by the SDM.

Sending the Required Events
Steps you through the required events when creating a debug engine (DE) and attaching it to a program.

Creating a Custom Debug Engine
Defines a debug engine (DE), and describes services implemented through the DE interfaces and how they can cause the debugger to transition between different operational modes.