I just started CUDA programming and having problem with debugger.
Going through this documentation: Getting Started with the CUDA Debugger — nsight-visual-studio-edition 13.0 documentation
“Start without debugging” on visual studio works on cuda-samples. However, I cannot go through kernel code with “Start CUDA debugging”. It either halts execution or freezes display output(gpu not responding).
The gpu clock rises only when I just start debugging, and never peaks when I continue on debugging.
Things I already have tried:
- building cuda-samples with/without debug flag
- numerous combinations for (device&host) cuda c/c++ in project properties
- manually installing latest nsight vse
- deleting graphics driver & nsight tools, and reinstalling latest cuda toolkit
- installing latest game ready/studio driver
- installing the latest driver before release of nsight vse
- turning on/off TDR from nsight monitor and rebooting
Windows 11 24h2. Visual Studio the latest version, 17.14.16.
nvcc -V
nvcc: NVIDIA (R) Cuda compiler driver
Copyright (c) 2005-2025 NVIDIA Corporation
Built on Wed_Aug_20_13:58:20_Pacific_Daylight_Time_2025
Cuda compilation tools, release 13.0, V13.0.88
Build cuda_13.0.r13.0/compiler.36424714_0
nvidia-smi
Tue Sep 30 22:48:08 2025
±----------------------------------------------------------------------------------------+
| NVIDIA-SMI 581.42 Driver Version: 581.42 CUDA Version: 13.0 |
±----------------------------------------±-----------------------±---------------------+
| GPU Name Driver-Model | Bus-Id Disp.A | Volatile Uncorr. ECC |
| Fan Temp Perf Pwr:Usage/Cap | Memory-Usage | GPU-Util Compute M. |
| | | MIG M. |
|=========================================+========================+======================|
| 0 NVIDIA GeForce RTX 5090 WDDM | 00000000:01:00.0 On | N/A |
| 0% 49C P8 27W / 575W | 1934MiB / 32607MiB | 1% Default |
| | | N/A |
±----------------------------------------±-----------------------±---------------------+