Current Working Directory VScode Nsight

In launch.json of VSCode, I cannot change the current working directory as I can do for other launch configurations such as for python. Usually, it would be available through the “cwd” property, but vscode says that I cannot set that for config of type “cuda-gdb”.

Am I doing something incorrectly?

2 Likes

I’m having the same issue with debugging C++ code. Did you get it to work?

That is a setting that we are currently missing, we plan to add that and several other settings in an upcoming release. In the meantime you can work around this by issuing the gdb cd command in the initCommands setting in launch.json.

Hi, thank you for your answer I had the same problem.

SHAREit MX Player