muhammadsammy / free-vscode-csharp

Free/Libre fork of the official C# extension for vscode
https://open-vsx.org/extension/muhammad-sammy/csharp
Other
110 stars 10 forks source link

Unable to use integratedTerminal #35

Closed ironsm4sh closed 2 years ago

ironsm4sh commented 2 years ago

Environment data

dotnet --info output:

.NET SDK (reflecting any global.json):
 Version:   6.0.101
 Commit:    ef49f6213a

Runtime Environment:
 OS Name:     debian
 OS Version:  11
 OS Platform: Linux
 RID:         debian.11-x64
 Base Path:   /usr/share/dotnet/sdk/6.0.101/

Host (useful for support):
  Version: 6.0.1
  Commit:  3a25a7f1cc

.NET SDKs installed:
  3.1.416 [/usr/share/dotnet/sdk]
  5.0.404 [/usr/share/dotnet/sdk]
  6.0.101 [/usr/share/dotnet/sdk]

.NET runtimes installed:
  Microsoft.AspNetCore.App 3.1.22 [/usr/share/dotnet/shared/Microsoft.AspNetCore.App]
  Microsoft.AspNetCore.App 5.0.13 [/usr/share/dotnet/shared/Microsoft.AspNetCore.App]
  Microsoft.AspNetCore.App 6.0.1 [/usr/share/dotnet/shared/Microsoft.AspNetCore.App]
  Microsoft.NETCore.App 3.1.22 [/usr/share/dotnet/shared/Microsoft.NETCore.App]
  Microsoft.NETCore.App 5.0.13 [/usr/share/dotnet/shared/Microsoft.NETCore.App]
  Microsoft.NETCore.App 6.0.1 [/usr/share/dotnet/shared/Microsoft.NETCore.App]

VS Code version: VSCodium 1.63.2 C# Extension version: muhammad-sammy.csharp v1.24.0

Steps to reproduce

Set the console to integratedTerminal in the launch.json and attempt to launch the debugger.

{
    "name": "Run ",
    "type": "coreclr",
    "request": "launch",
    "preLaunchTask": "build",
    "program": "${workspaceFolder}/MyProject/bin/Debug/net6.0/MyProject.dll",
    "args": [""],
    "cwd": "${workspaceFolder}",
    "console": "integratedTerminal",
    "stopAtEntry": false
}

Expected behavior

A new debug session in the integrated terminal, where the user can input text, as needed for a Console.ReadLine();

Actual behavior

A new debug session in the Debug Console, where the user can not input text.

CatoMaior commented 2 years ago

I'm having the same problem

ironsm4sh commented 2 years ago

This turns out to be an issue in netcoredbg, not free-omnisharp-vscode. https://github.com/Samsung/netcoredbg/issues/80.