Skip to content

Can't run the code without debugging with new MINGW version on Windows #11820

Open
@tu7-pixel

Description

@tu7-pixel

Environment

  • OS and Version: Windows 10
  • VS Code Version: 1.85.1 (system version)
  • C/C++ Extension Version: 1.18.5

Bug Summary and Steps to Reproduce

Bug Summary:

I just want ro run the code without the debugger.

1: I choose Run C/C++ File
Screenshot (435)

2: I can only choose gcc.exe build and debug active file
Screenshot (436)

3: The debugger starts and the output is only shown in the debugger window
Screenshot (438)

I tried modifying the .json but the debugger always starts.

Expected behavior:
See the output in the terminal without starting the debugger

Configuration and Logs

{
    "tasks": [
        {
            "type": "cppbuild",
            "label": "C/C++: gcc.exe build active file",
            "command": "C:\\MinGW\\bin\\gcc.exe",
            "args": [
                "${file}",
                "-o",
                "${fileDirname}\\${fileBasenameNoExtension}.exe"
            ],
            "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

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions