microsoft / microsoft/vscode-cpptools
Debug: Compound - Python / Attach C Process doesn't work
Open
Nobody has claimed this yet.
debugger
- Dominant language
- TypeScript
- Stars
- 6.2k
- Forks
- 1.7k
- Avg merge
- 14h 46m
- Merged PRs (30d)
- 61
Description
Type: Debugger
Describe the bug
- OS and Version: Windows 1909
- VS Code Version: 1.48-insder
- C/C++ Extension Version: v0.29.0
- Other extensions you installed: Python extension
To Reproduce
- Open folder in VS Code
- Create a new python file:
print("hello world")
- Add launch.json config:
{
// Use IntelliSense to learn about possible attributes.
// Hover to view descriptions of existing attributes.
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
"version": "0.2.0",
"configurations": [
{
"name": "C: Attach to Process",
"type": "cppvsdbg",
"request": "attach",
"processId": "${command:pickProcess}",
"visualizerFile": ""
},
{
"name":"Python: Current File",
"type":"python",
"request":"launch",
"program":"${file}",
"console":"integratedTerminal",
"stopOnEntry": true
},
],
"compounds":
[
{
"name": "C: Current Python File",
"configurations": ["Python: Current File", "C: Attach to Process"],
},
]
}
- Select the compound launch in the debugger and start it (F5)
- See the error Message

When you launch the python and c launch task separately it works:

Root Issue:
https://github.com/microsoft/vscode/issues/104174
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reproducing the compound launch from the provided launch.json on the listed Windows, VS Code, and C/C++ extension versions. Read the linked VS Code issue 104174 alongside the six comments; done means the Python and C attach configurations launch together successfully through the compound configuration.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- cpp, python, typescript
- Domain
- devtools
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100