# Nsight-not-hitting-breakpoint-in-cmake-project

**URL:** https://discourse.cmake.org/t/nsight-not-hitting-breakpoint-in-cmake-project/1964
**Category:** Usage
**Created:** [October 5, 2020, 1:50pm UTC](https://discourse.cmake.org/t/nsight-not-hitting-breakpoint-in-cmake-project/1964 "2020-10-05T13:50:17Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![Vahdaneh](https://discourse.cmake.org/letter_avatar_proxy/v4/letter/v/3be4f8/32.png) [@Vahdaneh](https://discourse.cmake.org/u/Vahdaneh)
#### Post date: [October 5, 2020, 1:50pm UTC](https://discourse.cmake.org/t/nsight-not-hitting-breakpoint-in-cmake-project/1964/1 "2020-10-05T13:50:17Z")

</div>

Hello,

I am trying to run one of the cuda\_sample files (V.11) by using CMake. However, GPU breakpoints are not working for me with CMake 3.18/VS2017/Nsight 2020.1.

In my CMakeLists.txt, I use **set(CUDA\_NVCC\_FLAGS\_DEBUG “-g -G”)**. Is there something else that might be missed? Or should I use somthing else?

You can also see the following output message:

[CUDA] Module loaded. 0000026da0d4ee50 Debug\_Line: false Debug\_Info: false PTX\_Line: false PTX\_Reg: false PTX\_Type: false

Thanks in advance for your help.

---

<div class="post-metadata">

### Author: ![ben.boeckel](https://discourse.cmake.org/letter_avatar_proxy/v4/letter/b/ea5d25/32.png) [@ben.boeckel](https://discourse.cmake.org/u/ben.boeckel)
#### Post date: [November 24, 2020, 11:51pm UTC](https://discourse.cmake.org/t/nsight-not-hitting-breakpoint-in-cmake-project/1964/2 "2020-11-24T23:51:38Z")

</div>

@robert.maynard
