microsoft / microsoft/vscode-cpptools
Unable to debug C++ code in Mac M1 Max
Dieses Issue hat noch niemand übernommen.
- Vorherrschende Sprache
- TypeScript
- Sterne
- 6.2k
- Forks
- 1.7k
- Ø Merge
- 14 Std. 46 Min.
- Gemergte PRs (30 T.)
- 61
Beschreibung
Environment
- OS and Version: Ventura 13.5.1 (22G90)
- VS Code Version: Version: 1.81.1 (Universal)
- C/C++ Extension Version: v1.17.5
- If using SSH remote, specify OS of remote machine: I can share my screen with TeamViewer or Google Meet if needed.
Bug Summary and Steps to Reproduce
Bug Summary:
The program is not able to handle inputs while debugging. I am getting "Unable to perform this action because the process is running." I had raised a ticket to VS code. They did some analysis and told me to raise issue here. Kindly help.
Steps to reproduce:
- Write a simple C++ program.
- Click on debugger.
- Provide input in the debug console.
- Show an error in red "Unable to perform this action because the process is running."
Expected behavior:
It should be able to take input and let me debug.
Configuration and Logs
c_cpp_properties.json:
{
"configurations": [
{
"name": "Mac",
"includePath": [
"${workspaceFolder}/**"
],
"defines": [],
"macFrameworkPath": [
"/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks"
],
"compilerPath": "/usr/bin/clang",
"cStandard": "c17",
"cppStandard": "c++17",
"intelliSenseMode": "macos-clang-arm64"
}
],
"version": 4
}
launch.json:
{
"version": "0.2.0",
"configurations": [
{
"name": "(lldb) Launch",
"type": "cppdbg",
"request": "launch",
"program": "enter program name, for example ${workspaceFolder}/a.out",
"args": [],
"stopAtEntry": false,
"cwd": "${fileDirname}",
"environment": [],
"externalConsole": false,
"MIMode": "lldb"
}
]
}
tasks.json:
{
"tasks": [
{
"type": "cppbuild",
"label": "C/C++: clang++ build active file",
"command": "/usr/bin/clang++",
"args": [
"-fcolor-diagnostics",
"-fansi-escape-codes",
"-g",
"${file}",
"-o",
"${fileDirname}/${fileBasenameNoExtension}"
],
"options": {
"cwd": "${fileDirname}"
},
"problemMatcher": [
"$gcc"
],
"group": {
"kind": "build",
"isDefault": true
},
"detail": "Task generated by Debugger."
}
],
"version": "2.0.0"
}
Other Extensions
No response
Additional context
No response
Beitragsleitfaden
Erste Schritte
- Lies das ganze Issue und danach den Beitragsleitfaden des Projekts.
- Schreib ins Issue, dass du es übernimmst — das erspart doppelte Arbeit.
- Forke das Repository und arbeite in einem Branch.
- Öffne einen Pull Request, der die Issue-Nummer nennt.
Rechercherichtung
Beginnen Sie damit, das Problem unter Ventura 13.5.1, VS Code 1.81.1 und C/C++ extension v1.17.5 mit der gezeigten launch.json, tasks.json und c_cpp_properties.json-Konfiguration zu reproduzieren. Überprüfen Sie das Verhalten des Debuggers und der Debug-Konsole, wenn das C++-Programm Eingaben anfordert; abgeschlossen ist die Aufgabe, wenn Eingaben während des Debuggens ohne den gemeldeten Fehler, dass der Prozess ausgeführt wird, akzeptiert werden.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Bewertung
- Tech-Stack
- cpp, vscode
- Bereich
- devtools
- Issue-Typ
- Bug
- Schwierigkeit
- 4/5
- Geschätzter Aufwand
- 3-5 Tage
- Aktivitätsstatus
- Veraltet
- Klarheit
- Größtenteils klar
- Anfängerfreundlichkeit
- 28/100