5.14.1 How Debug Works

Ensure you select your project or set it to be the main project (right click on the project and select Set as Main Project) before selecting one of the debug functions shown in the table below.

Debug progress is visible in the Output window.

Table 5-7. Debug Options on Toolbar Buttons
Button IconFunction(1)Build ProjectProgram DeviceExecute Code(2)
DebugBuild project code (with the debug executive) if the make process determines that a build is necessaryFor Hardware Debuggers: Program target device automatically with the build image (with the debug executive)

For Simulator: N/A

Launch debug tool and execute code (debug features are enabled)
Discrete Debug

Build for Debugging

Build project code (with the debug executive) if the make process determines that a build is necessaryN/AN/A
Discrete Debug

Program Device for Debugging

N/AProgram target device with the build image (with the debug executive)N/A
Discrete Debug

Launch Debugger

N/AN/ALaunch debug tool and execute code (debug features are enabled)
  1. In the button drop-down menu, you will see the function followed by either Project (Project Name) for a selected project or Main Project for a project set as main.
  2. If you do not want your code to execute after build and program, see Hold in Reset and Release from Reset.