Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save tonkatsu7/adea18f977a6d223efc0c5cac0224428 to your computer and use it in GitHub Desktop.
Save tonkatsu7/adea18f977a6d223efc0c5cac0224428 to your computer and use it in GitHub Desktop.
VSCode: Cannot read keys when either application does not have a console or when console input has been redirected. Try Console. Read. https://github.com/OmniSharp/omnisharp-vscode/blob/master/debugger-launchjson.md#console-terminal-window
{
// Use IntelliSense to find out which attributes exist for C# debugging
// Use hover for the description of the existing attributes
// For further information visit https://github.com/OmniSharp/omnisharp-vscode/blob/master/debugger-launchjson.md
"version": "0.2.0",
"configurations": [
{
"name": ".NET Core Launch (console)",
"type": "coreclr",
"request": "launch",
"preLaunchTask": "build",
// If you have changed target frameworks, make sure to update the program path.
"program": "${workspaceFolder}/bin/Debug/netcoreapp2.0/JsonTest.dll",
"args": [],
"cwd": "${workspaceFolder}",
// For more information about the 'console' field, see https://github.com/OmniSharp/omnisharp-vscode/blob/master/debugger-launchjson.md#console-terminal-window
// "console": "internalConsole",
"console": "integratedTerminal",
"stopAtEntry": false,
"internalConsoleOptions": "openOnSessionStart"
},
{
"name": ".NET Core Attach",
"type": "coreclr",
"request": "attach",
"processId": "${command:pickProcess}"
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment