Debugging custom runtimes in AutoCAD OEM

This topic is covered in the online training material (embedded in a 45-minute video) and we keep getting this question, so I figure it’ll help the community to use these quick steps rather than searching through the video.
A typical scenario is that you want to debug, edit and debug one or two specific runtimes without having to rebuild the whole OEM configuration. This example is for native (C++) code but the same applies to managed (.NET) code.

First, compile the ARX runtime that you have configured in your OEM project:

Then, choose ARX modules only for binding, build and launch the OEM application from the MakeWizard:
image

Set a breakpoint:


In VS, select ‘Debug’->’Attach to process’ (choose your OEM application) - make sure you target ‘Native’ code:

Run the command…
Debug:

I also have ‘Attach’ set to ‘Yes’ in my debugging configuration:
image