I am using Nsight on Ubuntu 16.04. My current set up allows me to compile and run my code perfectly fine through the nsight IDE. After making sure the program was building in debug mode (wasn't originally), it finally allowed me step through my code.
The problem I am having is whenever I try to debug my code, all the variables say "not available". Also, if I hover my mouse over the variable it was saying something like "-var-create: unable to create variable object". This made it seem like maybe it was the compiler? Maybe it is not adding something it was supposed to do?
Nsight version is 7.5, GCC & G++ version 5.3.1, GDB version 7.11, NVCC version 7.5.17.