Configuring debugger behaviour
Select a debugger to use when debugging an application.
To select a debugger:
- In the Project Explorer view, select a project.
- Click Run > Debug Configurations....
- In the Configurations box, expand C/C++ Application.
- Select a debug configuration.
- Click the Debugger tab..
- 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 .
- 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.
- Click Debug or do the following, as required:
- To specify the execution arguments that an application uses and the working directory for a run configuration, see Specifying execution arguments.
- To set the environment variables and the values to use when an application runs, see Setting environment variables
- To specify the location of source files used when debugging a C or C++ application, see Specifying the location of source files
- To specify where the run configuration is stored, how you access it, and the perspective to open when running an application, see Specifying the location of the run configuration
Projects
Project file views
Debug overview
Debug information
Creating or editing a run configuration