Switch g++ project's debugger to cuda-gdb?

Is there a way to configure a g++ toolchain project to use cuda-gdb? I’m using cuda-gdb on the command line to debug a G++ project that uses an nvcc compiled static library. It’d be nice to bring that workflow into the IDE.

Nsight uses cuda-gdb by default regardless of the toolchain used to build the project.

To confirm this:

  1. From the main menu, Run->Debug Configurations…
  2. Select your debug configuration under “C/C++ Application” tree.
  3. Verify the label to the left of “Apply” button reads “Using CUDA GDB Create Process launcher”
  4. Switch to the “Debugger” tab and verify “CUDA GDB executable” field shows “cuda-gdb”.