vscode-pythonCpp icon indicating copy to clipboard operation
vscode-pythonCpp copied to clipboard

"Please make sure you have a configurations with the names..."

Open Linusnie opened this issue 1 year ago • 1 comments

Hi, I have a launch.json with the following configurations:

        {
            "name": "pydebug",
            "type": "debugpy",
            "request": "launch",
            "program": "${file}",
            "console": "integratedTerminal"
        },
        {
            "name": "Python C++ Debug",
            "type": "pythoncpp",
            "request": "launch",
            "pythonLaunchName": "pydebug",
            "cppAttachName": "(gdb) Attach",
        },

And I'm trying to run a .py file with a single print statement. However, when I run the Python C++ Debug configuration I get a popup with the following message:

Please make sure you have a configurations with the names 'pydebug' in your launch.json file.

Which is confusing since a configuration with that name does exist. Any idea what the problem could be?

Linusnie avatar Mar 16 '24 12:03 Linusnie

I have the same issue - can't reuse configs with either pythonLaunchName or cppAttachName.

As workaround I found undocumented options entireCppConfig and entirePythonConfig they requre just copy of your config as value.

dmyger avatar Mar 22 '24 14:03 dmyger