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.

Debugger prints "You may only use the Microsoft .NET Core Debugger (vsdbg)..."

See original GitHub issue

dotnet -info:

/home/alex/Downloads$ dotnet --info                                                  
.NET Core SDK (reflecting any global.json):                                          
 Version:   2.2.402                                                                  
 Commit:    c7f2f96116                                                               
                                                                                     
Runtime Environment:                                                                 
 OS Name:     ubuntu                                                                 
 OS Version:  18.04                                                                  
 OS Platform: Linux                                                                  
 RID:         ubuntu.18.04-x64                                                       
 Base Path:   /usr/share/dotnet/sdk/2.2.402/                                         
                                                                                     
Host (useful for support):                                                           
  Version: 2.2.7                                                                     
  Commit:  b1e29ae826                                                                
                                                                                     
.NET Core SDKs installed:                                                            
  2.2.402 [/usr/share/dotnet/sdk]                                                    
                                                                                     
.NET Core runtimes installed:                                                        
  Microsoft.AspNetCore.All 2.2.7 [/usr/share/dotnet/shared/Microsoft.AspNetCore.All] 
  Microsoft.AspNetCore.App 2.2.7 [/usr/share/dotnet/shared/Microsoft.AspNetCore.App] 
  Microsoft.NETCore.App 2.2.7 [/usr/share/dotnet/shared/Microsoft.NETCore.App]       
                                                                                     
To install additional .NET Core runtimes or SDKs:                                    
  https://aka.ms/dotnet-download                                                     

VS Code version:

Version: 1.43.2
Commit: 0ba0ca52957102ca3527cf479571617f0de6ed50
Date: 2020-03-24T07:52:11.516Z
Electron: 7.1.11
Chrome: 78.0.3904.130
Node.js: 12.8.1
V8: 7.8.279.23-electron.0
OS: Linux x64 4.15.0-91-generic

C# Extension version: 1.21.15

Steps to reproduce

Opened a folder with sln file and C# projects in it. Added the following launch configuration:

    "configurations": [
        {
            "name": ".NET Core Launch (console)",
            "type": "coreclr",
            "request": "launch",
            "preLaunchTask": "build",
            "program": "${workspaceFolder}/trigger_management/bin/Debug/trigger_management.exe",
            "args": [],
            "cwd": "${workspaceFolder}/trigger_management/bin/Debug",
            "console": "internalConsole",
            "stopAtEntry": false,
        }

Clicked Run -> Start Debugging.

Expected behavior

The binary is executed

Actual behavior

Got the following message in debug console:

-------------------------------------------------------------------
You may only use the Microsoft .NET Core Debugger (vsdbg) with
Visual Studio Code, Visual Studio or Visual Studio for Mac software
to help you develop and test your applications.
-------------------------------------------------------------------

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:13 (7 by maintainers)

github_iconTop GitHub Comments

3reactions
highpriesstcommented, Apr 21, 2020

I think I’m having the same issue, these are my logs;

Dotnet info

Windows PowerShell
Copyright (C) Microsoft Corporation. All rights reserved.

PS C:\Users\Bjorn\gradebook\GradeBook> dotnet --info
.NET Core SDK (reflecting any global.json):
 Version:   3.1.201
 Commit:    b1768b4ae7

Runtime Environment:
 OS Name:     Windows
 OS Version:  10.0.17763
 OS Platform: Windows
 RID:         win10-x64
 Base Path:   C:\Program Files\dotnet\sdk\3.1.201\

Host (useful for support):
  Version: 3.1.3
  Commit:  4a9f85e9f8

.NET Core SDKs installed:
  3.1.201 [C:\Program Files\dotnet\sdk]

.NET Core runtimes installed:
  Microsoft.AspNetCore.All 2.1.17 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.All]
  Microsoft.AspNetCore.App 2.1.17 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App]
  Microsoft.AspNetCore.App 3.1.3 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App]
  Microsoft.NETCore.App 2.1.17 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
  Microsoft.NETCore.App 3.1.3 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
  Microsoft.WindowsDesktop.App 3.1.3 [C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App]

To install additional .NET Core runtimes or SDKs:
  https://aka.ms/dotnet-download

VS Code output;

-> (C) {"command":"initialize","arguments":{"clientID":"vscode","clientName":"Visual Studio Code","adapterID":"coreclr","pathFormat":"path","linesStartAt1":true,"columnsStartAt1":true,"supportsVariableType":true,"supportsVariablePaging":true,"supportsRunInTerminalRequest":true,"locale":"en-us","supportsProgressReporting":true},"type":"request","seq":1}
-> (C) {"command":"launch","arguments":{"name":".NET Core Launch (console)","type":"coreclr","request":"launch","preLaunchTask":"build","program":"C:\\Users\\Bjorn\\gradebook\\GradeBook/GradeBookConsole/bin/Debug/netcoreapp3.1/GradeBookConsole.dll","args":[],"cwd":"C:\\Users\\Bjorn\\gradebook\\GradeBook/GradeBookConsole","console":"internalConsole","stopAtEntry":false,"justMyCode":false,"logging":{"engineLogging":false},"internalConsoleOptions":"openOnSessionStart","__sessionId":"a8d1d8ee-7542-42af-8e51-77c517bbc716"},"type":"request","seq":2}
<- (E) {"seq":3,"type":"event","event":"output","body":{"category":"console","output":"-------------------------------------------------------------------\nYou may only use the Microsoft .NET Core Debugger (vsdbg) with\nVisual Studio Code, Visual Studio or Visual Studio for Mac software\nto help you develop and test your applications.\n-------------------------------------------------------------------\n"}}
-------------------------------------------------------------------
You may only use the Microsoft .NET Core Debugger (vsdbg) with
Visual Studio Code, Visual Studio or Visual Studio for Mac software
to help you develop and test your applications.
-------------------------------------------------------------------
<- (R) {"seq":4,"type":"response","request_seq":2,"success":true,"command":"launch"}
<- (E) {"seq":5,"type":"event","event":"initialized","body":{}}
-> (C) {"command":"setExceptionBreakpoints","arguments":{"filters":["user-unhandled"]},"type":"request","seq":3}
<- (R) {"seq":6,"type":"response","request_seq":3,"success":true,"command":"setExceptionBreakpoints"}
-> (C) {"command":"configurationDone","type":"request","seq":4}
<- (E) {"seq":7,"type":"event","event":"output","body":{"category":"telemetry","output":"VS/Diagnostics/Debugger/vsdbg/ProcessCreate","data":{"VS.Diagnostics.Debugger.vsdbg.OSFamily":"Windows","VS.Diagnostics.Debugger.vsdbg.Version":"16.5.20117.1 commit:2a72eb2aadc6bc6a29b05ebcc642a2699007df45","VS.Diagnostics.Debugger.vsdbg.WindowsVersion":"10.0.17763"}}}
<- (E) {"seq":8,"type":"event","event":"process","body":{"name":"C:\\Users\\Bjorn\\gradebook\\GradeBook\\GradeBookConsole\\bin\\Debug\\netcoreapp3.1\\GradeBookConsole.dll","systemProcessId":16344,"isLocalProcess":true,"startMethod":"launch"}}
<- (E) {"seq":9,"type":"event","event":"output","body":{"category":"telemetry","output":"VS/Diagnostics/Debugger/vsdbg/Launch","data":{"VS.Diagnostics.Debugger.vsdbg.OSFamily":"Windows","VS.Diagnostics.Debugger.vsdbg.Version":"16.5.20117.1 commit:2a72eb2aadc6bc6a29b05ebcc642a2699007df45","VS.Diagnostics.Debugger.vsdbg.VisualizerFileUsed":false,"VS.Diagnostics.Debugger.vsdbg.WindowsVersion":"10.0.17763","VS.Diagnostics.Debugger.vsdbg.Launch.Duration":156,"VS.Diagnostics.Debugger.vsdbg.TargetType":"Live","VS.Diagnostics.Debugger.vsdbg.AdapterId":"coreclr","VS.Diagnostics.Debugger.vsdbg.SourceFileMappings":0}}}
<- (R) {"seq":10,"type":"response","request_seq":4,"success":true,"command":"configurationDone"}
-> (C) {"command":"threads","type":"request","seq":5}
<- (R) {"seq":11,"type":"response","request_seq":5,"success":true,"command":"threads","message":"","body":{"threads":[]}}
<- (E) {"seq":12,"type":"event","event":"output","body":{"category":"console","output":"Loaded 'C:\\Program Files\\dotnet\\shared\\Microsoft.NETCore.App\\3.1.3\\System.Private.CoreLib.dll'. Cannot find or open the PDB file.\n"}}
Loaded 'C:\Program Files\dotnet\shared\Microsoft.NETCore.App\3.1.3\System.Private.CoreLib.dll'. Cannot find or open the PDB file.
<- (E) {"seq":13,"type":"event","event":"module","body":{"reason":"new","module":{"id":1000,"name":"System.Private.CoreLib.dll","path":"C:\\Program Files\\dotnet\\shared\\Microsoft.NETCore.App\\3.1.3\\System.Private.CoreLib.dll","isOptimized":true,"isUserCode":false,"version":"4.700.20.11803","symbolStatus":"Cannot find or open the PDB file."}}}
<- (E) {"seq":14,"type":"event","event":"thread","body":{"reason":"started","threadId":19028}}
<- (E) {"seq":15,"type":"event","event":"output","body":{"category":"console","output":"Loaded 'C:\\Users\\Bjorn\\gradebook\\GradeBook\\GradeBookConsole\\bin\\Debug\\netcoreapp3.1\\GradeBookConsole.dll'. Symbols loaded.\n"}}
Loaded 'C:\Users\Bjorn\gradebook\GradeBook\GradeBookConsole\bin\Debug\netcoreapp3.1\GradeBookConsole.dll'. Symbols loaded.
<- (E) {"seq":16,"type":"event","event":"module","body":{"reason":"new","module":{"id":1001,"name":"GradeBookConsole.dll","path":"C:\\Users\\Bjorn\\gradebook\\GradeBook\\GradeBookConsole\\bin\\Debug\\netcoreapp3.1\\GradeBookConsole.dll","isOptimized":false,"isUserCode":true,"version":"1.00.0.0","symbolStatus":"Symbols loaded.","symbolFilePath":"C:\\Users\\Bjorn\\gradebook\\GradeBook\\GradeBookConsole\\bin\\Debug\\netcoreapp3.1\\GradeBookConsole.pdb"}}}
<- (E) {"seq":17,"type":"event","event":"output","body":{"category":"console","output":"Loaded 'C:\\Program Files\\dotnet\\shared\\Microsoft.NETCore.App\\3.1.3\\System.Runtime.dll'. Cannot find or open the PDB file.\n"}}
Loaded 'C:\Program Files\dotnet\shared\Microsoft.NETCore.App\3.1.3\System.Runtime.dll'. Cannot find or open the PDB file.
<- (E) {"seq":18,"type":"event","event":"module","body":{"reason":"new","module":{"id":1002,"name":"System.Runtime.dll","path":"C:\\Program Files\\dotnet\\shared\\Microsoft.NETCore.App\\3.1.3\\System.Runtime.dll","isOptimized":true,"isUserCode":false,"version":"4.700.20.12001","symbolStatus":"Cannot find or open the PDB file."}}}
<- (E) {"seq":19,"type":"event","event":"output","body":{"category":"console","output":"Loaded 'C:\\Program Files\\dotnet\\shared\\Microsoft.NETCore.App\\3.1.3\\System.Console.dll'. Cannot find or open the PDB file.\n"}}
Loaded 'C:\Program Files\dotnet\shared\Microsoft.NETCore.App\3.1.3\System.Console.dll'. Cannot find or open the PDB file.
<- (E) {"seq":20,"type":"event","event":"module","body":{"reason":"new","module":{"id":1003,"name":"System.Console.dll","path":"C:\\Program Files\\dotnet\\shared\\Microsoft.NETCore.App\\3.1.3\\System.Console.dll","isOptimized":true,"isUserCode":false,"version":"4.700.20.12001","symbolStatus":"Cannot find or open the PDB file."}}}
<- (E) {"seq":21,"type":"event","event":"output","body":{"category":"console","output":"Loaded 'C:\\Program Files\\dotnet\\shared\\Microsoft.NETCore.App\\3.1.3\\System.Threading.dll'. Cannot find or open the PDB file.\n"}}

VS Code version info

Version: 1.44.2 (user setup)
Commit: ff915844119ce9485abfe8aa9076ec76b5300ddd
Date: 2020-04-16T16:36:23.138Z
Electron: 7.1.11
Chrome: 78.0.3904.130
Node.js: 12.8.1
V8: 7.8.279.23-electron.0
OS: Windows_NT x64 10.0.17763

C# extension version: 1.21.17

0reactions
gregg-miskellycommented, Jun 2, 2020

@Perustaja if you installed VS Code from the Arch package repository: the problem is that you have the OSS version of VS Code, and the C# debugger is not licensed to work in non-Microsoft products. Please install VS Code from Microsoft if you would like to use the debugger from this extension.

If that is not your problem: please open a new issue. Unfortunately this issue is very generic, so, unless you look at a debugger log to see what failure is being reported, it is hard to guess if one person’s problem is the same as another. So I will lock it to prevent further comments.

Read more comments on GitHub >

github_iconTop Results From Across the Web

how to disable message "You may only use the Microsoft .NET ...
You may only use the Microsoft .NET Core Debugger (vsdbg) with Visual Studio Code, Visual Studio or Visual Studio for Mac software to...
Read more >
[SOLVED] .NET Core, unable to debug in Visual Studio Code
You may only use the Microsoft .NET Core Debugger (vsdbg) with Visual Studio Code, Visual Studio or Visual Studio for Mac software to...
Read more >
Debug a .NET console application using Visual Studio Code
This tutorial introduces the debugging tools available in Visual Studio Code for working with .NET apps.
Read more >
Windows (10.0.19042) debugger (VS Code vsdbg and Visual ...
vsdbg is Microsoft .NET Core Debugger (vsdbg), no version information available, at $HOME\.vscode\extensions\ms-dotnettools.csharp-1.23.11 ...
Read more >
Debug Your .NET Core Apps in WSL 2 with Visual Studio
And once your app is deployed, you can always use the Remote Debugger to attach to it if there is an issue. Getting...
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