Cuda gdb on jetson nano

Hi,
I am also facing the same issue, and I tried to check on some other pages from where I was able to solve the problem of that with the below link but later on I am facing issues with cuda kernel debugging as the board is getting hang while trying for kernel debugging in cuda gdb.
https://forums.developer.nvidia.com/t/unable-to-debug-simple-cuda-program-cudbg-error-initialization-failure/222599