# Break points not hit in CUDA kernel code with Nsight debugger in Visual Studio 2017

**URL:** <https://forums.developer.nvidia.com/t/break-points-not-hit-in-cuda-kernel-code-with-nsight-debugger-in-visual-studio-2017/191710>\
**Category:** Nsight Visual Studio Edition\
**Tags:** kernel\
**Created:** [October 11, 2021, 4:40am UTC](https://forums.developer.nvidia.com/t/break-points-not-hit-in-cuda-kernel-code-with-nsight-debugger-in-visual-studio-2017/191710 "2021-10-11T04:40:34Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![lijing070769](https://developer.download.nvidia.com/images/forums/profile-default-devtalk-84.png) [@lijing070769](https://forums.developer.nvidia.com/u/lijing070769)\
**Post date:** [October 11, 2021, 4:40am UTC](https://forums.developer.nvidia.com/t/break-points-not-hit-in-cuda-kernel-code-with-nsight-debugger-in-visual-studio-2017/191710/1 "2021-10-11T04:40:34Z")

</div>

Hi,  
I am just starting to learn Nsight CUDA debugger in Visual Studio 2017.  
My GPU is NVIDIA GeForce GTX 1050 Ti with Max-Q Design.  
My Nsight Version is 2021.2.1  
My CUDA Toolkit is 11.4.

I was following this tutorial([Getting Started with the CUDA Debugger :: NVIDIA Nsight VSE Documentation](https://docs.nvidia.com/nsight-visual-studio-edition/cuda-debugger/#walkthrough-build-sample-launch-debugger)) and using the matrixMul project.

When I clicked Nsight-\>CUDA start debugging(Legacy), I got a warning saying that “A CUDA context was created on a GPU that is not supported by the legacy CUDA debugger. Breakpoints will be disabled. See output window for details. Adapter: NVIDIA GeForce GTX 1050 Ti with Max-Q Design.”  
Then I tried Nsight-\>CUDA start debugging(Next-Gen). The break points in the kernel code turned into a hollow red circle with a warning saying that the break point will not be hit.

Can I use Nsight CUDA debugger on my GPU architecture? How can I have a working breakpoint in the kernel code?
