microsoft / vscode-cpptools

Official repository for the Microsoft C/C++ extension for VS Code.
Other
5.54k stars 1.56k forks source link

Set externalConsole to true does not open terminal, and the debugger just hangs. #6805

Open FavonianKong opened 3 years ago

FavonianKong commented 3 years ago

Type: Debugger

Describe the bug

To Reproduce Please include a code sample and launch.json configuration.

{
    // 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": "(gdb) Launch",
            "type": "cppdbg",
            "request": "launch",
            "program": "xxx/build_20.13.1.1/programs/myprograms",
            "args": [
                "--server",
                "-C",
                "config.xml"
            ],
            "stopAtEntry": false,
            "cwd": "xxx/build_20.13.1.1/programs",
            "environment": [],
            "externalConsole": ture,   // if set to false,it works fine
            "MIMode": "gdb",
            "setupCommands": [
                {
                    "description": "Enable pretty-printing for gdb",
                    "text": "-enable-pretty-printing",
                    "ignoreFailures": true
                }
            ]
        }
    ]
}

I've seen similar problems in the VsCode community, and they think the problem is caused by extension. Any idea?https://github.com/microsoft/vscode/issues/111160#issuecomment-732000615

WardenGnaw commented 3 years ago

There is an issue with VS Code launching an external window with WSL. This would need to be investigated since we request RunInTerminal with external console, but they may be reporting that the window is succeeding.

github-actions[bot] commented 3 years ago

This issue has been closed automatically because it's labeled as 'external'.

github-actions[bot] commented 3 years ago

This issue has been closed automatically because it has not had recent activity.

Alaskra commented 1 year ago

It seems this bug have not been resolved, is anyone handling it?

Alaskra commented 1 year ago

related issue: #1772

Kellermaan commented 1 year ago

yes indeed. the issue is still bothering me.

yizhilsy commented 11 months ago

I also meet this problem. After I update vscode to the newest edition, Set externalConsole to true doesn't work.

nepp95 commented 10 months ago

Same problem here. externalConsole true = application doesn't run, debugger hangs. Set to false it doesn't output at all.

Not using wsl it works fine so it definitely is a wsl/vscode problem.

DavidC-75 commented 10 months ago

Same problem here.... It's so convenient to close issues automatically when there is no recent activity. Problems just go away, it's magic !!

rafael-solorzano commented 8 months ago

I am also having the same issue!

totszwai commented 3 months ago

3 years later... hello?

thernstig commented 2 months ago

Is this not identical to https://github.com/microsoft/vscode-cpptools/issues/1772? And this one should thus be closed.

Both seem to be about WSL and "externalConsole": true not working.

Andrew-S-Jing commented 2 weeks ago

pls help! "externalConsole": true is definitely not working