Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Compile and Debug error on GCC + VSCode #13088

Open
HillGnur opened this issue Dec 30, 2024 · 0 comments
Open

Compile and Debug error on GCC + VSCode #13088

HillGnur opened this issue Dec 30, 2024 · 0 comments
Assignees
Labels
investigate: repro This issue's repro steps needs to be investigated/confirmed Language Service

Comments

@HillGnur
Copy link

Environment

  • OS and version: Win11
  • VS Code: 1.96.2
  • Used Msys2 from VSCode documentation page (on 30/12/2024)
  • C/C++ extension: GCC 14.2.0
  • GDB / LLDB version: 15.2

Bug Summary and Steps to Reproduce

Hi there, I've just installed msys2 with gcc, g++ and gdb to compile and debug C files, I can compile it using gcc [file_path] -o [output], but when I click on Run or Debug using VSCode, it shows me that the file doesn't exist. I've already checked if there's any application running on task manager, nothing running, also, tried to configure a launch.json file, but it didn't work, the same error appears everytime, so, how do I fix this, or even, how can I disable debugging? So it can just compile for me, and then I debug it externally.

Image
Image
Image

If there's any information missing, just let me know and I update it here :D

Debugger Configurations

{
    "tasks": [
        {
            "type": "cppbuild",
            "label": "C/C++: gcc.exe build active file",
            "command": "C:\\msys64\\mingw64\\bin\\gcc.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

No logs are generated apart vscode console logs.

Other Extensions

N/A

Additional Information

No response

@browntarik browntarik self-assigned this Jan 2, 2025
@browntarik browntarik added investigate: repro This issue's repro steps needs to be investigated/confirmed Language Service labels Jan 2, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
investigate: repro This issue's repro steps needs to be investigated/confirmed Language Service
Projects
Status: No status
Development

No branches or pull requests

2 participants