Skip to content

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

@astepanov83

Description

@astepanov83

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.
-------------------------------------------------------------------

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions