Vscode C++ debugging by bash script

Viewed 289

I want to debug a C++ program with VSCode, but I run my program with a bash script. I tried this:

    {
        "name": "Run",
        "type": "cppdbg",
        "request": "launch",
        "program": "/bin/bash",
        "stopAtEntry": false,
        "args": ["-ic" , "run_script"],
    },

But I receive

bash: cannot set terminal process group (-1): Inappropriate ioctl for device
bash: no job control in this shell

And the debugger doesn't connect (though the program is running). I know there's tasks.json for scripts but I want to debug the C++ program invoked from the script. Is it possible?

0 Answers
Related