Nsight visual debugger is designed for seamless debugging of both CPU (host) and GPU (device) code. All debugger features are enabled for both GPU and CPU code. Both line number breakpoints (see Adding breakpoints) and function name breakpoints will cause the debugger to stop at a given source line regardless of whether this code is executed on GPU or CPU code.
Nsight also provides a way to set a special breakpoint that will cause the debugger to suspend whenever new code begins executing on the GPU. This breakpoint can be set from the Breakpoints view toolbar.
This breakpoint setting affects all debugging sessions and is remembered between Nsight restarts.