-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Closed as not planned
Closed as not planned
Copy link
Labels
debuggermore info neededThe issue report is not actionable in its current stateThe issue report is not actionable in its current state
Description
Environment
- OS and version: Windows 10 Pro 22H2
- VS Code: 1.74.2
- C/C++ extension: v1.13.9
- GDB / LLDB version: GNU gdb 12.1
Bug Summary and Steps to Reproduce
Bug Summary:
Is unable to start debugging. Unexpected GDB output from command "environment -cd". I trying test and explore Visual Studio Code in depth, I start learning C++ like a weak ago.
I follow Mysy64 and C/C++ extension installation in VsCode web GCC on Windows, i check environment variables path to match C:\msys64\mingw64\bin.
Then I create a HelloWorld.cpp like in the article.
And try run the debugger.
I did the troubleshooting pacman -S --needed base-devel mingw-w64-x86_64-toolchain
but no luck.
Debugger Configurations
launch.json:
{
"version": "0.2.0",
"configurations": [
{
"name": "C/C++: g++.exe build and debug active file",
"type": "cppdbg",
"request": "launch",
"program": "${fileDirname}\\${fileBasenameNoExtension}.exe",
"args": [],
"stopAtEntry": false,
"cwd": "${fileDirname}",
"environment": [],
"externalConsole": false,
"MIMode": "gdb",
"miDebuggerPath": "C:\\msys64\\mingw64\\bin\\gdb.exe",
"setupCommands": [
{
"description": "Enable pretty-printing for gdb",
"text": "-enable-pretty-printing",
"ignoreFailures": true
}
],
"preLaunchTask": "C/C++: g++.exe build active file"
}
]
}
task.json:
{
"tasks": [
{
"type": "cppbuild",
"label": "C/C++: cpp.exe build active file",
"command": "C:\\msys64\\mingw64\\bin\\cpp.exe",
"args": [
"-fdiagnostics-color=always",
"-g",
"${file}",
"-o",
"${fileDirname}\\${fileBasenameNoExtension}.exe"
],
"options": {
"cwd": "${fileDirname}"
},
"problemMatcher": [
"$gcc"
],
"group": "build",
"detail": "Task generated by Debugger."
},
{
"type": "cppbuild",
"label": "C/C++: g++.exe build active file",
"command": "C:\\msys64\\mingw64\\bin\\g++.exe",
"args": [
"-fdiagnostics-color=always",
"-g",
"${file}",
"-o",
"${fileDirname}\\${fileBasenameNoExtension}.exe"
],
"options": {
"cwd": "${fileDirname}"
},
"problemMatcher": [
"$gcc"
],
"group": {
"kind": "build",
"isDefault": true
},
"detail": "Task generated by Debugger."
}
],
"version": "2.0.0"
}
Debugger Logs
Window popup.
Unable to start debugging. Unexpected GDB output from command "-environment-cd" (file direction) "" (file direction):No such file or directory.
Other Extensions
C/C++ Extension Pack
Additional Information
pedrokourly and luiscmt22Laxaro-Void
Metadata
Metadata
Assignees
Labels
debuggermore info neededThe issue report is not actionable in its current stateThe issue report is not actionable in its current state