Topic says it all.
The extension doesn’t start cuda-gdb as root, so when you reach any CUDA code, you get this:
fatal: The CUDA driver initialization failed. (error code = CUDBG_ERROR_INITIALIZATION_FAILURE(0x14)
I tried to create a script that runs cuda-gdb as root on the Nano, and then added an entry on the sudoers file so that no password is required. Unfortunately, the extension appears to ignore the standard “miDebuggerPath” property in the launch.json, which is accepted by the regular C/C++ extension.
Some kind of option needs to be offered to run cuda-gdb as root, otherwise this will be completely useless for the Jetson Nano