# Debugging custom runtimes in AutoCAD OEM

**URL:** <https://forum.techsoft3d.com/t/debugging-custom-runtimes-in-autocad-oem/4121>\
**Category:** AutoCAD OEM\
**Tags:** how-to\
**Created:** [October 16, 2024, 10:57pm UTC](https://forum.techsoft3d.com/t/debugging-custom-runtimes-in-autocad-oem/4121 "2024-10-16T22:57:07Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![paavo](https://avatars.discourse-cdn.com/v4/letter/p/b3f665/32.png) [@paavo](https://forum.techsoft3d.com/u/paavo)\
**Post date:** [October 16, 2024, 10:57pm UTC](https://forum.techsoft3d.com/t/debugging-custom-runtimes-in-autocad-oem/4121/1 "2024-10-16T22:57:07Z")

</div>

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:

 ![image](https://us1.discourse-cdn.com/flex020/uploads/techsoft3d/original/2X/8/830347e7670554188095dae732cfcd1f999ec042.png)

 ![image](https://us1.discourse-cdn.com/flex020/uploads/techsoft3d/original/2X/3/335faf8c0a70008dd95741602adc85874ad14dab.png)

Then, choose **ARX modules only** for binding, build and launch the OEM application from the MakeWizard:  
 ![image](https://us1.discourse-cdn.com/flex020/uploads/techsoft3d/original/2X/4/49c3dc7a976d19830cea42d8e48a5ac9ed51d447.png)

Set a breakpoint:

 ![image](https://us1.discourse-cdn.com/flex020/uploads/techsoft3d/original/2X/f/f5d117ae9db1dacad70f26d4c328b4362f5d4cf4.png)  
In VS, select ‘Debug’-\>’Attach to process’ (choose your OEM application) - make sure you target ‘Native’ code:  
 ![image](https://us1.discourse-cdn.com/flex020/uploads/techsoft3d/original/2X/5/5c52d7dba43faae37ede0e0748c718eed675872a.png)

Run the command…  
Debug:

 ![image](https://us1.discourse-cdn.com/flex020/uploads/techsoft3d/original/2X/9/9168197d81444d58def05a35184ead7e967f16b5.png)

I also have ‘Attach’ set to ‘Yes’ in my debugging configuration:  
 ![image](https://us1.discourse-cdn.com/flex020/uploads/techsoft3d/original/2X/f/fd5d0bfea71484dc5fc5a31199943301cff2f3fc.png)
