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”.
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.