Debugsession in vscode cannot find a file that cuda-gdb is able to find

this question probably is quite basic but I have no ideas where to start fixing this.
I want to debug my .cu program with vscode to have a better visualized debug session than with cuda-gdb.
However in the vscode session my program does not find a inputfile in the normal c++ code, while it works perfectly with cuda-gdb in a console. How can this be? I expected them to do the same since my launch.json file looks like this:

    "version": "0.2.0",
    "configurations": [
            "name": "CUDA: Debug with CUDA-GDB",
            "type": "cuda-gdb",
            "request": "launch",
            "gdb": "cuda-gdb",
            "program": "${workspaceFolder}/ftlmdebug",

The ftlmdebug is my executable file after compiling with -g -G for the usage of cuda-gdb. The program displays the correct filename if I print it out but the input-file-stream does not open.
Thank you for your help

How are you attempting to open the input file? There’s a chance that problem has to do with your current working directory. As an experiment, try to open your input file using an absolute path (e.g. “/home/dwesterbeck/input_file”) and see if this resolve the issue.

1 Like

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.