Debugging Only on the Coprocessor

Task Prerequisite

Note

This topic only applies to Intel® MIC Architecture.

To debug only on the coprocessor, you need to attach to an application running on the Intel® MIC Architecture coprocessor. Create a new debug configuration with settings appropriate for the Intel® Debugger for this purpose.

To debug only on the coprocessor:

  1. Select Run > Debug Configurations....
  2. Select the debug configuration type C/C++ Attach to 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) Attach to Process Launcher.
  8. Click OK. The Select Preferred Launcher dialog box is closed.
  9. Switch to the Debugger tab.
  10. Under MIC Options check the Attach to MIC checkbox.
  11. Choose the desired coprocessor from the Card pulldown menu.
  12. At File Location browse for the symbol file related to the process you want to attach to.
  13. Click Debug. The debugger starts and the Select a Process dialog box opens displaying a list of running processes.
  14. Select the process you want to attach to and click OK.

The debug configuration for attaching to a Intel® MIC Architecture application is set up and the debugging session is launched.