question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Arch: Debugging just stops when trying to print out "Hello World!"

See original GitHub issue

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

  1. Create a console application, dotnet new console i. Worth to mention, running dotnet build and dotnet run works without problems
  2. 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"
        }
  1. 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.

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:15 (4 by maintainers)

github_iconTop GitHub Comments

2reactions
CTJanssoncommented, Jan 28, 2019

@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)

0reactions
audecommented, May 9, 2019

Oh, thanks for the explanation. I misunderstood, I was talking about a different issue, my bad.

Read more comments on GitHub >

github_iconTop Results From Across the Web

General troubleshooting - ArchWiki
Press Ctrl+s to pause the output. And Ctrl+q to resume it. This pauses not only the output, but also programs which try to...
Read more >
Cuda Hello World printf not working even with -arch=sm_20
Your project is trying to compile for compute_10 and compute_20. Don't compile for compute_10 targets, they don't support in kernel printf . –...
Read more >
Can't debug. Stepping doesn't work, breakpoints ignored.
When stepping, the debugger complains about an error. The console prints something like (dont have exact message since I dont have the laptop ......
Read more >
Debugging Guide for GDB and VS Code Table of Contents
Debugging an application using GDB command prompt. ... (host)$ gdb-multiarch helloWorld. 5. At the GDB prompt ... Stop any debug sessions.
Read more >
Breakpoint Debugging C/C++ in Visual Studio Code with ...
In this video, our expert mentor, two-time GSoC participant, and a GSoC mentor, Arnav Gupta explains how to run the C++ Code with...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found