In this example we show how to create a project for a DLL (Dynamic Linked Library) using one of the built-in Carbide templates, how to build it into an executable, and how to launch the debugger to verify program accuracy. The steps to do this include:
With the DLL compiled into object code, it's time to link it to any process running on the target device, then launch it with the debugger. Using the New Launch Configuration Wizard makes doing this quick, easy, and reliable.
Debugging a DLL project
The first time you perform any of the following actions, the New Launch Configuration Wizard appears asking for the additional info to connect to a device.
Complete all of the options below to create a launch connection for the DLL project.
To debug a DLL you simply need to attach it to any process running on the target device. Setting the Attach to process option will throw up a Attach to Process dialog when you start a debug session.
The Debug control enables when all the information is complete.
The debug session is launched and the Attach to Process dialog appears. Select a process and click OK to continue.
The DLL is attached to the running process and control returns to the Carbide debugger. From this point you can use all of the Carbide debugger features to debug the DLL as it runs on the device.