vscode-csharp: Arch: Debugging just stops when trying to print out "Hello World!"
Environment data
dotnet --info:
.NET Core SDK (reflecting any global.json):
Version: 2.2.102
Commit: 96ff75a873
Runtime Environment:
OS Name: antergos
OS Version:
OS Platform: Linux
RID: arch-x64
Base Path: /opt/dotnet/sdk/2.2.102/
Host (useful for support):
Version: 2.2.1
Commit: 878dd11e62
.NET Core SDKs installed:
2.2.102 [/opt/dotnet/sdk]
.NET Core runtimes installed:
Microsoft.NETCore.App 2.2.1 [/opt/dotnet/shared/Microsoft.NETCore.App]
VS Code version:
Version: 1.30.2
Commit: 61122f88f0bf01e2ac16bdb9e1bc4571755f5bd8
Date: 2019-01-08T23:10:56.746Z
Electron: 2.0.16
Chrome: 61.0.3163.100
Node.js: 8.9.3
V8: 6.1.534.41
OS: Linux x64 4.20.4-arch1-1-ARCH
C# Extension version:
1.17.1
Steps to reproduce
- Create a console application, dotnet new console i. Worth to mention, running dotnet build and dotnet run works without problems
- Open your console application folder into your workspace, create your default launch.json and task.json
{
"name": ".NET Core Launch (console)",
"type": "coreclr",
"request": "launch",
"preLaunchTask": "build",
"program": "${workspaceFolder}/bin/Debug/netcoreapp2.2/test.dll",
"args": [],
"cwd": "${workspaceFolder}",
"console": "internalConsole",
"stopAtEntry": false,
"internalConsoleOptions": "openOnSessionStart"
},
{
"name": ".NET Core Attach",
"type": "coreclr",
"request": "attach",
"processId": "${command:pickProcess}"
}
{
"label": "build",
"command": "dotnet build",
"type": "shell",
"group": "build",
"presentation": {
"reveal": "silent"
},
"problemMatcher": "$msCompile"
}
- Press F5 to start debug
Expected behavior
Starts debugger and Print out “Hello world” in the debug console
Actual behavior
After the preLaunchTask, the debugger just stops without any error output and not printing “Hello World!” in the debug console.
About this issue
- Original URL
- State: closed
- Created 5 years ago
- Comments: 15 (4 by maintainers)
@gregg-miskelly well, it seems I did, I installed the one from arch repository (this is the one causing problems), checked if AUR had a package and sure it did, that one works, so the issue can be closed again. Thanks for the help though, never had a thought on checking AUR for vscode when it was in the official repo. (Note for others incl myself, don’t install vs code from arch repo, install the one from AUR)