Debugging a Heterogeneous Application

Note

This topic only applies to Intel® MIC Architecture.

To launch and debug the heterogeneous application, you need to create a new debug configuration with settings appropriate for the Intel® Debugger.

The create the debug configuration:

  1. Select Run > Debug Configurations....
  2. Select the debug configuration type C/C++ Application.

    Note

    The C/C++ Application configuration type also applies if you intend to debug a Fortran application.
  3. Click the New button.
  4. Enter a name for your configuration.
  5. On the Main tab locate the process launcher information and click Select other.... The Select Preferred Launcher dialog box appears.
  6. Check the Use configuration specific settings checkbox.
  7. Select IDB-MIC (DSF) Create Process Launcher.
  8. Click OK. The Select Preferred Launcher dialog box is closed.
  9. If you want to make IDB-MIC the default launcher, select Window > Preferences, expand Run/Debug, and select Launching. Change the default launchers appropriately.
  10. Switch to the Debugger tab.
  11. Under Debugger Options select the Main tab. Make sure that the path to the debugger executable is specified correctly in the field IDB Debugger. By default, IDB debugger contains the correct start script idb_mpm. Since the composerxe_mic environment was sourced earlier, changing this is not required.
  12. Go back to the Main tab of the Debug Configurations dialog.
  13. Under C/C++ Application enter the path to the application you wish to debug.
  14. Click Apply to save the changes to the configuration.

The debug configuration for debugging an Intel® MIC Architecture application with the Intel® Debugger is set up and ready to be used. To debug your application using this configuration, click Debug in the Debug Configurations dialog box, or close the dialog box and select Run > Debug from the menu bar or click the Debug button.