NVIDIA Nsight Visual Studio Edition brings GPU computing into Microsoft Visual Studio (including multiple instances of VS2017). This application development environment for GPUs allows you to build, debug, profile and trace heterogeneous compute, graphics, virtual reality, and UWP applications built with CUDA C/C++, OpenCL, DirectCompute, Direct3D, Vulkan API, OpenGL, OpenVR, and the Oculus SDK.
The CUDA Debugger helps you debug applications that use the Compute Unified Device Architecture (CUDA). You can set breakpoints in CUDA source code, inspect memory, view the values of local variables, perform memory checks, as well as other common debugging tasks. You can use the CUDA Debugger with applications built with the CUDA Runtime (CUDART) API or with the CUDA Driver API.