Enable a program to be debugged
Applies to: Visual Studio Visual Studio for Mac
Note
This article applies to Visual Studio 2017. 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
Get a port Discusses how to obtain a port as the first step to enabling a program to be debugged.
Register 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.
Attach 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.
Send the required events Steps you through the required events when creating a debug engine (DE) and attaching it to a program.
Related sections
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.