Configuring debugger behaviour

Select a debugger to use when debugging an application.

To select a debugger:

  1. In the Project Explorer view, select a project.
  2. Click Run > Debug Configurations....
  3. In the Configurations box, expand C/C++ Application.
  4. Select a debug configuration.
  5. Click the Debugger tab..
    Run Debugger window
  6. To let your program run until you interrupt it manually, or until it hits a breakpoint, clear the Stop at main() on startup check box .
  7. Some important settings include:
    • Enabled CUDA devices - this setting controls what locally installed CUDA devices will be available to CUDA application. Note that GPUs used to render OS UI will be excluded by the debugger automatically.
    • Break on CUDA API call failure - will automatically stop the application when CUDA API call fails, even if the return value is not checked by the application
    • Enable CUDA memcheck - runs the debugger with enabled cuda-memcheck integration. Enabling memcheck increases precision of the device exceptions attribution and allows detecting some subtle memory access problems.
  8. Click Debug or do the following, as required:

Related concepts
Projects
Project file views
Debug overview
Debug information

Related tasks
Creating or editing a run configuration

Related reference
Run and Debug dialog box

IBM Copyright Statement