dotnet / vscode-csharp

Official C# support for Visual Studio Code
MIT License
2.86k stars 672 forks source link

Unit test debugging: "Unable to attach to CoreCLR." error #4405

Open and-rewsmith opened 3 years ago

and-rewsmith commented 3 years ago

Environment data

dotnet --info output:

.NET Core SDK (reflecting any global.json):
 Version:   3.1.406
 Commit:    a36050195a

Runtime Environment:
 OS Name:     ubuntu
 OS Version:  18.04
 OS Platform: Linux
 RID:         ubuntu.18.04-x64
 Base Path:   /usr/share/dotnet/sdk/3.1.406/

Host (useful for support):
  Version: 3.1.12
  Commit:  0267ad09c6

.NET Core SDKs installed:
  3.1.406 [/usr/share/dotnet/sdk]

.NET Core runtimes installed:
  Microsoft.AspNetCore.All 2.1.23 [/usr/share/dotnet/shared/Microsoft.AspNetCore.All]
  Microsoft.AspNetCore.App 2.1.23 [/usr/share/dotnet/shared/Microsoft.AspNetCore.App]
  Microsoft.AspNetCore.App 3.1.12 [/usr/share/dotnet/shared/Microsoft.AspNetCore.App]
  Microsoft.NETCore.App 2.1.23 [/usr/share/dotnet/shared/Microsoft.NETCore.App]
  Microsoft.NETCore.App 3.1.12 [/usr/share/dotnet/shared/Microsoft.NETCore.App]

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

VS Code version:

1.53.2
622cb03f7e070a9670c94bae1a45d78d7181fbd4
x64

C# Extension version: v1.23.9 (Omnisharp)

OmniSharp log

Starting OmniSharp server at 2/19/2021, 2:38:50 AM
    Target: /home/azureuser/Documents/iotedge/test/modules/Modules.Test

OmniSharp server started.
    Path: /home/azureuser/.vscode-server/extensions/ms-dotnettools.csharp-1.23.9/.omnisharp/1.37.6/run
    PID: 30691

[info]: OmniSharp.Stdio.Host
        Starting OmniSharp on ubuntu 18.4 (x64)
[info]: OmniSharp.Services.DotNetCliService
        DotNetPath set to dotnet
[info]: OmniSharp.MSBuild.Discovery.MSBuildLocator
        Located 1 MSBuild instance(s)
            1: StandAlone 16.8.0 - "/home/azureuser/.vscode-server/extensions/ms-dotnettools.csharp-1.23.9/.omnisharp/1.37.6/omnisharp/.msbuild/Current/Bin"
[info]: OmniSharp.MSBuild.Discovery.MSBuildLocator
        MSBUILD_EXE_PATH environment variable set to '/home/azureuser/.vscode-server/extensions/ms-dotnettools.csharp-1.23.9/.omnisharp/1.37.6/omnisharp/.msbuild/Current/Bin/MSBuild.exe'
[info]: OmniSharp.MSBuild.Discovery.MSBuildLocator
        Registered MSBuild instance: StandAlone 16.8.0 - "/home/azureuser/.vscode-server/extensions/ms-dotnettools.csharp-1.23.9/.omnisharp/1.37.6/omnisharp/.msbuild/Current/Bin"
            CscToolExe = csc.exe
            MSBuildToolsPath = /home/azureuser/.vscode-server/extensions/ms-dotnettools.csharp-1.23.9/.omnisharp/1.37.6/omnisharp/.msbuild/Current/Bin
            CscToolPath = /home/azureuser/.vscode-server/extensions/ms-dotnettools.csharp-1.23.9/.omnisharp/1.37.6/omnisharp/.msbuild/Current/Bin/Roslyn
            BypassFrameworkInstallChecks = true
            MSBuildExtensionsPath = /home/azureuser/.vscode-server/extensions/ms-dotnettools.csharp-1.23.9/.omnisharp/1.37.6/omnisharp/.msbuild
[info]: OmniSharp.WorkspaceInitializer
        Invoking Workspace Options Provider: OmniSharp.Roslyn.CSharp.Services.CSharpFormattingWorkspaceOptionsProvider, Order: 0
[info]: OmniSharp.WorkspaceInitializer
        Invoking Workspace Options Provider: OmniSharp.Roslyn.CSharp.Services.Completion.CompletionOptionsProvider, Order: 0
[info]: OmniSharp.WorkspaceInitializer
        Invoking Workspace Options Provider: OmniSharp.Roslyn.CSharp.Services.RenameWorkspaceOptionsProvider, Order: 100
[info]: OmniSharp.WorkspaceInitializer
        Invoking Workspace Options Provider: OmniSharp.Roslyn.CSharp.Services.ImplementTypeWorkspaceOptionsProvider, Order: 110
[info]: OmniSharp.WorkspaceInitializer
        Invoking Workspace Options Provider: OmniSharp.Roslyn.CSharp.Services.BlockStructureWorkspaceOptionsProvider, Order: 140
[info]: OmniSharp.Cake.CakeProjectSystem
        Detecting Cake files in '/home/azureuser/Documents/iotedge/test/modules/Modules.Test'.
[info]: OmniSharp.Cake.CakeProjectSystem
        Could not find any Cake files
[info]: OmniSharp.MSBuild.ProjectSystem
        No solution files found in '/home/azureuser/Documents/iotedge/test/modules/Modules.Test'
[info]: OmniSharp.MSBuild.ProjectManager
        Queue project update for '/home/azureuser/Documents/iotedge/test/modules/Modules.Test/Modules.Test.csproj'
[info]: OmniSharp.Script.ScriptProjectSystem
        Detecting CSX files in '/home/azureuser/Documents/iotedge/test/modules/Modules.Test'.
[info]: OmniSharp.Script.ScriptProjectSystem
        Could not find any CSX files
[info]: OmniSharp.WorkspaceInitializer
        Configuration finished.
[info]: OmniSharp.Stdio.Host
        Omnisharp server running using Stdio at location '/home/azureuser/Documents/iotedge/test/modules/Modules.Test' on host 30570.
[info]: OmniSharp.MSBuild.ProjectManager
        Loading project: /home/azureuser/Documents/iotedge/test/modules/Modules.Test/Modules.Test.csproj
[info]: OmniSharp.MSBuild.ProjectManager
        Successfully loaded project file '/home/azureuser/Documents/iotedge/test/modules/Modules.Test/Modules.Test.csproj'.
[info]: OmniSharp.MSBuild.ProjectManager
        Adding project '/home/azureuser/Documents/iotedge/test/modules/Modules.Test/Modules.Test.csproj'
[info]: OmniSharp.MSBuild.ProjectManager
        Update project: Modules.Test
[info]: OmniSharp.MSBuild.ProjectManager
        Found referenced project outside root directory: /home/azureuser/Documents/iotedge/test/modules/ModuleLib/Microsoft.Azure.Devices.Edge.ModuleUtil.csproj
[info]: OmniSharp.MSBuild.ProjectManager
        Adding project '/home/azureuser/Documents/iotedge/test/modules/ModuleLib/Microsoft.Azure.Devices.Edge.ModuleUtil.csproj'
[info]: OmniSharp.MSBuild.ProjectManager
        Queue project update for '/home/azureuser/Documents/iotedge/test/modules/ModuleLib/Microsoft.Azure.Devices.Edge.ModuleUtil.csproj'
[info]: OmniSharp.MSBuild.ProjectManager
        Found referenced project outside root directory: /home/azureuser/Documents/iotedge/edge-util/src/Microsoft.Azure.Devices.Edge.Storage/Microsoft.Azure.Devices.Edge.Storage.csproj
[info]: OmniSharp.MSBuild.ProjectManager
        Adding project '/home/azureuser/Documents/iotedge/edge-util/src/Microsoft.Azure.Devices.Edge.Storage/Microsoft.Azure.Devices.Edge.Storage.csproj'
[info]: OmniSharp.MSBuild.ProjectManager
        Queue project update for '/home/azureuser/Documents/iotedge/edge-util/src/Microsoft.Azure.Devices.Edge.Storage/Microsoft.Azure.Devices.Edge.Storage.csproj'
[info]: OmniSharp.MSBuild.ProjectManager
        Found referenced project outside root directory: /home/azureuser/Documents/iotedge/edge-util/src/Microsoft.Azure.Devices.Edge.Storage.RocksDb/Microsoft.Azure.Devices.Edge.Storage.RocksDb.csproj
[info]: OmniSharp.MSBuild.ProjectManager
        Adding project '/home/azureuser/Documents/iotedge/edge-util/src/Microsoft.Azure.Devices.Edge.Storage.RocksDb/Microsoft.Azure.Devices.Edge.Storage.RocksDb.csproj'
[info]: OmniSharp.MSBuild.ProjectManager
        Queue project update for '/home/azureuser/Documents/iotedge/edge-util/src/Microsoft.Azure.Devices.Edge.Storage.RocksDb/Microsoft.Azure.Devices.Edge.Storage.RocksDb.csproj'
[info]: OmniSharp.MSBuild.ProjectManager
        Found referenced project outside root directory: /home/azureuser/Documents/iotedge/edge-util/src/Microsoft.Azure.Devices.Edge.Util/Microsoft.Azure.Devices.Edge.Util.csproj
[info]: OmniSharp.MSBuild.ProjectManager
        Adding project '/home/azureuser/Documents/iotedge/edge-util/src/Microsoft.Azure.Devices.Edge.Util/Microsoft.Azure.Devices.Edge.Util.csproj'
[info]: OmniSharp.MSBuild.ProjectManager
        Queue project update for '/home/azureuser/Documents/iotedge/edge-util/src/Microsoft.Azure.Devices.Edge.Util/Microsoft.Azure.Devices.Edge.Util.csproj'
[info]: OmniSharp.MSBuild.ProjectManager
        Found referenced project outside root directory: /home/azureuser/Documents/iotedge/edge-util/test/Microsoft.Azure.Devices.Edge.Util.Test.Common/Microsoft.Azure.Devices.Edge.Util.Test.Common.csproj
[info]: OmniSharp.MSBuild.ProjectManager
        Adding project '/home/azureuser/Documents/iotedge/edge-util/test/Microsoft.Azure.Devices.Edge.Util.Test.Common/Microsoft.Azure.Devices.Edge.Util.Test.Common.csproj'
[info]: OmniSharp.MSBuild.ProjectManager
        Queue project update for '/home/azureuser/Documents/iotedge/edge-util/test/Microsoft.Azure.Devices.Edge.Util.Test.Common/Microsoft.Azure.Devices.Edge.Util.Test.Common.csproj'
[info]: OmniSharp.MSBuild.ProjectManager
        Found referenced project outside root directory: /home/azureuser/Documents/iotedge/test/modules/TestResultCoordinator/TestResultCoordinator.csproj
[info]: OmniSharp.MSBuild.ProjectManager
        Adding project '/home/azureuser/Documents/iotedge/test/modules/TestResultCoordinator/TestResultCoordinator.csproj'
[info]: OmniSharp.MSBuild.ProjectManager
        Queue project update for '/home/azureuser/Documents/iotedge/test/modules/TestResultCoordinator/TestResultCoordinator.csproj'
[info]: OmniSharp.MSBuild.ProjectManager
        Loading project: /home/azureuser/Documents/iotedge/test/modules/ModuleLib/Microsoft.Azure.Devices.Edge.ModuleUtil.csproj
[info]: OmniSharp.MSBuild.ProjectManager
        Successfully loaded project file '/home/azureuser/Documents/iotedge/test/modules/ModuleLib/Microsoft.Azure.Devices.Edge.ModuleUtil.csproj'.
[info]: OmniSharp.MSBuild.ProjectManager
        Loading project: /home/azureuser/Documents/iotedge/edge-util/src/Microsoft.Azure.Devices.Edge.Storage/Microsoft.Azure.Devices.Edge.Storage.csproj
[info]: OmniSharp.MSBuild.ProjectManager
        Successfully loaded project file '/home/azureuser/Documents/iotedge/edge-util/src/Microsoft.Azure.Devices.Edge.Storage/Microsoft.Azure.Devices.Edge.Storage.csproj'.
[info]: OmniSharp.MSBuild.ProjectManager
        Loading project: /home/azureuser/Documents/iotedge/edge-util/src/Microsoft.Azure.Devices.Edge.Storage.RocksDb/Microsoft.Azure.Devices.Edge.Storage.RocksDb.csproj
[info]: OmniSharp.MSBuild.ProjectManager
        Successfully loaded project file '/home/azureuser/Documents/iotedge/edge-util/src/Microsoft.Azure.Devices.Edge.Storage.RocksDb/Microsoft.Azure.Devices.Edge.Storage.RocksDb.csproj'.
[info]: OmniSharp.MSBuild.ProjectManager
        Loading project: /home/azureuser/Documents/iotedge/edge-util/src/Microsoft.Azure.Devices.Edge.Util/Microsoft.Azure.Devices.Edge.Util.csproj
[info]: OmniSharp.MSBuild.ProjectManager
        Successfully loaded project file '/home/azureuser/Documents/iotedge/edge-util/src/Microsoft.Azure.Devices.Edge.Util/Microsoft.Azure.Devices.Edge.Util.csproj'.
[info]: OmniSharp.MSBuild.ProjectManager
        Loading project: /home/azureuser/Documents/iotedge/edge-util/test/Microsoft.Azure.Devices.Edge.Util.Test.Common/Microsoft.Azure.Devices.Edge.Util.Test.Common.csproj
[info]: OmniSharp.MSBuild.ProjectManager
        Successfully loaded project file '/home/azureuser/Documents/iotedge/edge-util/test/Microsoft.Azure.Devices.Edge.Util.Test.Common/Microsoft.Azure.Devices.Edge.Util.Test.Common.csproj'.
[info]: OmniSharp.MSBuild.ProjectManager
        Loading project: /home/azureuser/Documents/iotedge/test/modules/TestResultCoordinator/TestResultCoordinator.csproj
[info]: OmniSharp.MSBuild.ProjectManager
        Successfully loaded project file '/home/azureuser/Documents/iotedge/test/modules/TestResultCoordinator/TestResultCoordinator.csproj'.
[info]: OmniSharp.MSBuild.ProjectManager
        Update project: Microsoft.Azure.Devices.Edge.ModuleUtil
[info]: OmniSharp.OmniSharpWorkspace
        Adding analyzer reference: /home/azureuser/.nuget/packages/stylecop.analyzers.unstable/1.2.0.164/analyzers/dotnet/cs/StyleCop.Analyzers.CodeFixes.dll
[info]: OmniSharp.OmniSharpWorkspace
        Adding analyzer reference: /home/azureuser/.nuget/packages/stylecop.analyzers.unstable/1.2.0.164/analyzers/dotnet/cs/StyleCop.Analyzers.dll
[info]: OmniSharp.MSBuild.ProjectManager
        Update project: Microsoft.Azure.Devices.Edge.Storage
[info]: OmniSharp.OmniSharpWorkspace
        Adding analyzer reference: /home/azureuser/.nuget/packages/stylecop.analyzers.unstable/1.2.0.164/analyzers/dotnet/cs/StyleCop.Analyzers.CodeFixes.dll
[info]: OmniSharp.OmniSharpWorkspace
        Adding analyzer reference: /home/azureuser/.nuget/packages/stylecop.analyzers.unstable/1.2.0.164/analyzers/dotnet/cs/StyleCop.Analyzers.dll
[info]: OmniSharp.MSBuild.ProjectManager
        Update project: Microsoft.Azure.Devices.Edge.Storage.RocksDb
[info]: OmniSharp.OmniSharpWorkspace
        Adding analyzer reference: /home/azureuser/.nuget/packages/stylecop.analyzers.unstable/1.2.0.164/analyzers/dotnet/cs/StyleCop.Analyzers.CodeFixes.dll
[info]: OmniSharp.OmniSharpWorkspace
        Adding analyzer reference: /home/azureuser/.nuget/packages/stylecop.analyzers.unstable/1.2.0.164/analyzers/dotnet/cs/StyleCop.Analyzers.dll
[info]: OmniSharp.MSBuild.ProjectManager
        Update project: Microsoft.Azure.Devices.Edge.Util
[info]: OmniSharp.OmniSharpWorkspace
        Adding analyzer reference: /home/azureuser/.nuget/packages/stylecop.analyzers.unstable/1.2.0.164/analyzers/dotnet/cs/StyleCop.Analyzers.CodeFixes.dll
[info]: OmniSharp.OmniSharpWorkspace
        Adding analyzer reference: /home/azureuser/.nuget/packages/stylecop.analyzers.unstable/1.2.0.164/analyzers/dotnet/cs/StyleCop.Analyzers.dll
[info]: OmniSharp.MSBuild.ProjectManager
        Update project: Microsoft.Azure.Devices.Edge.Util.Test.Common
[info]: OmniSharp.OmniSharpWorkspace
        Adding analyzer reference: /home/azureuser/.nuget/packages/stylecop.analyzers.unstable/1.2.0.164/analyzers/dotnet/cs/StyleCop.Analyzers.CodeFixes.dll
[info]: OmniSharp.OmniSharpWorkspace
        Adding analyzer reference: /home/azureuser/.nuget/packages/stylecop.analyzers.unstable/1.2.0.164/analyzers/dotnet/cs/StyleCop.Analyzers.dll
[info]: OmniSharp.OmniSharpWorkspace
        Adding analyzer reference: /home/azureuser/.nuget/packages/xunit.analyzers/0.10.0/analyzers/dotnet/cs/xunit.analyzers.dll
[info]: OmniSharp.MSBuild.ProjectManager
        Update project: TestResultCoordinator
[info]: OmniSharp.OmniSharpWorkspace
        Adding analyzer reference: /home/azureuser/.nuget/packages/stylecop.analyzers.unstable/1.2.0.164/analyzers/dotnet/cs/StyleCop.Analyzers.CodeFixes.dll
[info]: OmniSharp.OmniSharpWorkspace
        Adding analyzer reference: /home/azureuser/.nuget/packages/stylecop.analyzers.unstable/1.2.0.164/analyzers/dotnet/cs/StyleCop.Analyzers.dll
Received response for /quickinfo but could not find request.
[info]: OmniSharp.DotNetTest.VSTestManager
        read: {"MessageType":"TestSession.Connected","Payload":null}
[info]: OmniSharp.DotNetTest.VSTestManager
        read: {"MessageType":"ProtocolVersion","Payload":1}
[info]: OmniSharp.DotNetTest.DebugSessionManager
        Debug session started.
[info]: OmniSharp.DotNetTest.DebugSessionManager
        Debug session ended.

Steps to reproduce

  1. install dotnet-sdk-3.1 via apt
  2. install omnisharp extension
  3. attempt to debug any test

This was at one point working on my machine, so I am guessing there was something else I did that broke it.

Expected behavior

Debugging works and is able to attach to process, then hit my breakpoint.

Actual behavior

It gives me the following error about CoreCLR. I know that this vsdbg text does not indicate an error. When I click the square stop debug vscode button It then gives the error about dotnet has exited.

Full error:

-------------------------------------------------------------------
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.
-------------------------------------------------------------------
Unable to attach to CoreCLR. 
The program '[29455] dotnet' has exited with code -1 (0xffffffff).
gregg-miskelly commented 3 years ago

Hmm... Can you try enabling unit test debug logging (see here) to see if we get anything useful?

and-rewsmith commented 3 years ago

@gregg-miskelly I'll get debug logs soon. Not a lot of free time recently. Thanks for the help!

and-rewsmith commented 3 years ago

@gregg-miskelly I tried all three methods to try to get debug logging. Here are the additional logs that showed up:

-> (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,"supportsInvalidatedEvent":true},"type":"request","seq":1}
-> (C) {"command":"launch","arguments":{"logging":{"engineLogging":false},"type":"coreclr","name":".NET Test Launch","request":"launch","debuggerEventsPipeName":"/home/azureuser/.vscode-server/extensions/ms-dotnettools.csharp-1.23.9/.TestDebugEvents-28902","program":"/usr/share/dotnet/dotnet","args":"exec --runtimeconfig \"/home/azureuser/Documents/iotedge/test/modules/Modules.Test/bin/Debug/netcoreapp3.1/Modules.Test.runtimeconfig.json\" --depsfile \"/home/azureuser/Documents/iotedge/test/modules/Modules.Test/bin/Debug/netcoreapp3.1/Modules.Test.deps.json\" \"/home/azureuser/.nuget/packages/microsoft.testplatform.testhost/16.4.0/lib/netcoreapp2.1/testhost.dll\" --port 38621 --endpoint 127.0.0.1:038621 --role client --parentprocessid 29492 --telemetryoptedin false","cwd":"/home/azureuser/Documents/iotedge/test/modules/Modules.Test/bin/Debug/netcoreapp3.1","internalConsoleOptions":"openOnSessionStart","__sessionId":"3cb6bc26-5ae5-4b09-9ab2-4b3e0cc92860"},"type":"request","seq":2}
<- (E) {"seq":4,"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","severity":"ok"}}
-------------------------------------------------------------------
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":5,"type":"response","request_seq":2,"success":true,"command":"launch"}
<- (E) {"seq":6,"type":"event","event":"initialized","body":{}}
-> (C) {"command":"setBreakpoints","arguments":{"source":{"name":"DirectMethodLongHaulReportGeneratorTest.cs","path":"/home/azureuser/Documents/iotedge/test/modules/Modules.Test/TestResultCoordinator/Reports/DirectMethod/DirectMethodLongHaulReportGeneratorTest.cs","checksums":[{"algorithm":"SHA1","checksum":"7ede60ad3a4969746282a43bfb87163003b79c6d"},{"algorithm":"SHA256","checksum":"922bf7c0deac9645275218027a0140b6cf2febbafa28c56597a14ab739699f47"},{"algorithm":"SHA1","checksum":"4f45ad769557aafa66e5a74780b1110bc02aaae1"},{"algorithm":"SHA256","checksum":"4908c240071d12652398b6f28339afdbee4ea1f501b25f4403db3e94aa4e45c5"}]},"lines":[224,232],"breakpoints":[{"line":224},{"line":232}],"sourceModified":false},"type":"request","seq":3}
<- (R) {"seq":7,"type":"response","request_seq":3,"success":true,"command":"setBreakpoints","body":{"breakpoints":[{"id":1,"verified":false,"message":"The breakpoint is pending and will be resolved when debugging starts.","line":224},{"id":2,"verified":false,"message":"The breakpoint is pending and will be resolved when debugging starts.","line":232}]}}
-> (C) {"command":"setFunctionBreakpoints","arguments":{"breakpoints":[]},"type":"request","seq":4}
<- (R) {"seq":8,"type":"response","request_seq":4,"success":true,"command":"setFunctionBreakpoints","body":{"breakpoints":[]}}
-> (C) {"command":"setExceptionBreakpoints","arguments":{"filters":["user-unhandled"]},"type":"request","seq":5}
<- (R) {"seq":9,"type":"response","request_seq":5,"success":true,"command":"setExceptionBreakpoints"}
-> (C) {"command":"configurationDone","type":"request","seq":6}
<- (E) {"seq":10,"type":"event","event":"output","body":{"category":"telemetry","output":"VS/Diagnostics/Debugger/vsdbg/ProcessCreate","data":{"VS.Diagnostics.Debugger.vsdbg.Distribution.Name":"ubuntu","VS.Diagnostics.Debugger.vsdbg.Distribution.Version":"18.04","VS.Diagnostics.Debugger.vsdbg.OSFamily":"Linux","VS.Diagnostics.Debugger.vsdbg.Version":"16.9.20121.2 commit:113b30b32bcc4cb8cabaafb9451e05fbe795ca27"}}}
<- (E) {"seq":11,"type":"event","event":"process","body":{"name":"/usr/share/dotnet/dotnet","systemProcessId":29574,"isLocalProcess":true,"startMethod":"launch"}}
<- (E) {"seq":12,"type":"event","event":"breakpoint","body":{"reason":"changed","breakpoint":{"id":1,"verified":false,"message":"No symbols have been loaded for this document.","line":224}}}
<- (E) {"seq":13,"type":"event","event":"breakpoint","body":{"reason":"changed","breakpoint":{"id":2,"verified":false,"message":"No symbols have been loaded for this document.","line":232}}}
<- (E) {"seq":14,"type":"event","event":"output","body":{"category":"telemetry","output":"VS/Diagnostics/Debugger/vsdbg/Launch","data":{"VS.Diagnostics.Debugger.vsdbg.AdapterId":"coreclr","VS.Diagnostics.Debugger.vsdbg.SourceFileMappings":0,"VS.Diagnostics.Debugger.vsdbg.VisualizerFileUsed":false,"VS.Diagnostics.Debugger.vsdbg.Launch.Duration":296,"VS.Diagnostics.Debugger.vsdbg.Distribution.Name":"ubuntu","VS.Diagnostics.Debugger.vsdbg.TargetType":"Live","VS.Diagnostics.Debugger.vsdbg.Distribution.Version":"18.04","VS.Diagnostics.Debugger.vsdbg.OSFamily":"Linux","VS.Diagnostics.Debugger.vsdbg.Version":"16.9.20121.2 commit:113b30b32bcc4cb8cabaafb9451e05fbe795ca27"}}}
<- (R) {"seq":15,"type":"response","request_seq":6,"success":true,"command":"configurationDone"}
<- (E) {"seq":16,"type":"event","event":"output","body":{"category":"stderr","output":"Unable to attach to CoreCLR. ","severity":"error"}}
Unable to attach to CoreCLR. 
-> (C) {"command":"threads","type":"request","seq":7}
<- (R) {"seq":17,"type":"response","request_seq":7,"success":true,"command":"threads","body":{"threads":[]}}

Omnisharp logs still look like INFO level:

Starting OmniSharp server at 3/23/2021, 10:11:33 PM
    Target: /home/azureuser/Documents/iotedge/test/modules/Modules.Test

OmniSharp server started.
    Path: /home/azureuser/.vscode-server/extensions/ms-dotnettools.csharp-1.23.9/.omnisharp/1.37.6/run
    PID: 744

[info]: OmniSharp.Stdio.Host
        Starting OmniSharp on ubuntu 18.4 (x64)
[info]: OmniSharp.Services.DotNetCliService
        DotNetPath set to dotnet
[info]: OmniSharp.MSBuild.Discovery.MSBuildLocator
        Located 1 MSBuild instance(s)
            1: StandAlone 16.8.0 - "/home/azureuser/.vscode-server/extensions/ms-dotnettools.csharp-1.23.9/.omnisharp/1.37.6/omnisharp/.msbuild/Current/Bin"
[info]: OmniSharp.MSBuild.Discovery.MSBuildLocator
        MSBUILD_EXE_PATH environment variable set to '/home/azureuser/.vscode-server/extensions/ms-dotnettools.csharp-1.23.9/.omnisharp/1.37.6/omnisharp/.msbuild/Current/Bin/MSBuild.exe'
[info]: OmniSharp.MSBuild.Discovery.MSBuildLocator
        Registered MSBuild instance: StandAlone 16.8.0 - "/home/azureuser/.vscode-server/extensions/ms-dotnettools.csharp-1.23.9/.omnisharp/1.37.6/omnisharp/.msbuild/Current/Bin"
            CscToolExe = csc.exe
            MSBuildToolsPath = /home/azureuser/.vscode-server/extensions/ms-dotnettools.csharp-1.23.9/.omnisharp/1.37.6/omnisharp/.msbuild/Current/Bin
            CscToolPath = /home/azureuser/.vscode-server/extensions/ms-dotnettools.csharp-1.23.9/.omnisharp/1.37.6/omnisharp/.msbuild/Current/Bin/Roslyn
            BypassFrameworkInstallChecks = true
            MSBuildExtensionsPath = /home/azureuser/.vscode-server/extensions/ms-dotnettools.csharp-1.23.9/.omnisharp/1.37.6/omnisharp/.msbuild
[info]: OmniSharp.WorkspaceInitializer
        Invoking Workspace Options Provider: OmniSharp.Roslyn.CSharp.Services.CSharpFormattingWorkspaceOptionsProvider, Order: 0
[info]: OmniSharp.WorkspaceInitializer
        Invoking Workspace Options Provider: OmniSharp.Roslyn.CSharp.Services.Completion.CompletionOptionsProvider, Order: 0
[info]: OmniSharp.WorkspaceInitializer
        Invoking Workspace Options Provider: OmniSharp.Roslyn.CSharp.Services.RenameWorkspaceOptionsProvider, Order: 100
[info]: OmniSharp.WorkspaceInitializer
        Invoking Workspace Options Provider: OmniSharp.Roslyn.CSharp.Services.ImplementTypeWorkspaceOptionsProvider, Order: 110
[info]: OmniSharp.WorkspaceInitializer
        Invoking Workspace Options Provider: OmniSharp.Roslyn.CSharp.Services.BlockStructureWorkspaceOptionsProvider, Order: 140
[info]: OmniSharp.Cake.CakeProjectSystem
        Detecting Cake files in '/home/azureuser/Documents/iotedge/test/modules/Modules.Test'.
[info]: OmniSharp.Cake.CakeProjectSystem
        Could not find any Cake files
[info]: OmniSharp.MSBuild.ProjectSystem
        No solution files found in '/home/azureuser/Documents/iotedge/test/modules/Modules.Test'
[info]: OmniSharp.MSBuild.ProjectManager
        Queue project update for '/home/azureuser/Documents/iotedge/test/modules/Modules.Test/Modules.Test.csproj'
[info]: OmniSharp.Script.ScriptProjectSystem
        Detecting CSX files in '/home/azureuser/Documents/iotedge/test/modules/Modules.Test'.
[info]: OmniSharp.Script.ScriptProjectSystem
        Could not find any CSX files
[info]: OmniSharp.WorkspaceInitializer
        Configuration finished.
[info]: OmniSharp.Stdio.Host
        Omnisharp server running using Stdio at location '/home/azureuser/Documents/iotedge/test/modules/Modules.Test' on host 564.
[info]: OmniSharp.MSBuild.ProjectManager
        Loading project: /home/azureuser/Documents/iotedge/test/modules/Modules.Test/Modules.Test.csproj
[info]: OmniSharp.MSBuild.ProjectManager
        Successfully loaded project file '/home/azureuser/Documents/iotedge/test/modules/Modules.Test/Modules.Test.csproj'.
[info]: OmniSharp.MSBuild.ProjectManager
        Adding project '/home/azureuser/Documents/iotedge/test/modules/Modules.Test/Modules.Test.csproj'
[info]: OmniSharp.MSBuild.ProjectManager
        Update project: Modules.Test
[info]: OmniSharp.MSBuild.ProjectManager
        Found referenced project outside root directory: /home/azureuser/Documents/iotedge/edge-util/src/es6numberserializer/es6numberserializer.csproj
[info]: OmniSharp.MSBuild.ProjectManager
        Adding project '/home/azureuser/Documents/iotedge/edge-util/src/es6numberserializer/es6numberserializer.csproj'
[info]: OmniSharp.MSBuild.ProjectManager
        Queue project update for '/home/azureuser/Documents/iotedge/edge-util/src/es6numberserializer/es6numberserializer.csproj'
[info]: OmniSharp.MSBuild.ProjectManager
        Found referenced project outside root directory: /home/azureuser/Documents/iotedge/edge-util/src/jsoncanonicalizer/jsoncanonicalizer.csproj
[info]: OmniSharp.MSBuild.ProjectManager
        Adding project '/home/azureuser/Documents/iotedge/edge-util/src/jsoncanonicalizer/jsoncanonicalizer.csproj'
[info]: OmniSharp.MSBuild.ProjectManager
        Queue project update for '/home/azureuser/Documents/iotedge/edge-util/src/jsoncanonicalizer/jsoncanonicalizer.csproj'
[info]: OmniSharp.MSBuild.ProjectManager
        Found referenced project outside root directory: /home/azureuser/Documents/iotedge/test/modules/ModuleLib/Microsoft.Azure.Devices.Edge.ModuleUtil.csproj
[info]: OmniSharp.MSBuild.ProjectManager
        Adding project '/home/azureuser/Documents/iotedge/test/modules/ModuleLib/Microsoft.Azure.Devices.Edge.ModuleUtil.csproj'
[info]: OmniSharp.MSBuild.ProjectManager
        Queue project update for '/home/azureuser/Documents/iotedge/test/modules/ModuleLib/Microsoft.Azure.Devices.Edge.ModuleUtil.csproj'
[info]: OmniSharp.MSBuild.ProjectManager
        Found referenced project outside root directory: /home/azureuser/Documents/iotedge/edge-util/src/Microsoft.Azure.Devices.Edge.Storage/Microsoft.Azure.Devices.Edge.Storage.csproj
[info]: OmniSharp.MSBuild.ProjectManager
        Adding project '/home/azureuser/Documents/iotedge/edge-util/src/Microsoft.Azure.Devices.Edge.Storage/Microsoft.Azure.Devices.Edge.Storage.csproj'
[info]: OmniSharp.MSBuild.ProjectManager
        Queue project update for '/home/azureuser/Documents/iotedge/edge-util/src/Microsoft.Azure.Devices.Edge.Storage/Microsoft.Azure.Devices.Edge.Storage.csproj'
[info]: OmniSharp.MSBuild.ProjectManager
        Found referenced project outside root directory: /home/azureuser/Documents/iotedge/edge-util/src/Microsoft.Azure.Devices.Edge.Storage.RocksDb/Microsoft.Azure.Devices.Edge.Storage.RocksDb.csproj
[info]: OmniSharp.MSBuild.ProjectManager
        Adding project '/home/azureuser/Documents/iotedge/edge-util/src/Microsoft.Azure.Devices.Edge.Storage.RocksDb/Microsoft.Azure.Devices.Edge.Storage.RocksDb.csproj'
[info]: OmniSharp.MSBuild.ProjectManager
        Queue project update for '/home/azureuser/Documents/iotedge/edge-util/src/Microsoft.Azure.Devices.Edge.Storage.RocksDb/Microsoft.Azure.Devices.Edge.Storage.RocksDb.csproj'
[info]: OmniSharp.MSBuild.ProjectManager
        Found referenced project outside root directory: /home/azureuser/Documents/iotedge/edge-util/src/Microsoft.Azure.Devices.Edge.Util/Microsoft.Azure.Devices.Edge.Util.csproj
[info]: OmniSharp.MSBuild.ProjectManager
        Adding project '/home/azureuser/Documents/iotedge/edge-util/src/Microsoft.Azure.Devices.Edge.Util/Microsoft.Azure.Devices.Edge.Util.csproj'
[info]: OmniSharp.MSBuild.ProjectManager
        Queue project update for '/home/azureuser/Documents/iotedge/edge-util/src/Microsoft.Azure.Devices.Edge.Util/Microsoft.Azure.Devices.Edge.Util.csproj'
[info]: OmniSharp.MSBuild.ProjectManager
        Found referenced project outside root directory: /home/azureuser/Documents/iotedge/edge-util/test/Microsoft.Azure.Devices.Edge.Util.Test.Common/Microsoft.Azure.Devices.Edge.Util.Test.Common.csproj
[info]: OmniSharp.MSBuild.ProjectManager
        Adding project '/home/azureuser/Documents/iotedge/edge-util/test/Microsoft.Azure.Devices.Edge.Util.Test.Common/Microsoft.Azure.Devices.Edge.Util.Test.Common.csproj'
[info]: OmniSharp.MSBuild.ProjectManager
        Queue project update for '/home/azureuser/Documents/iotedge/edge-util/test/Microsoft.Azure.Devices.Edge.Util.Test.Common/Microsoft.Azure.Devices.Edge.Util.Test.Common.csproj'
[info]: OmniSharp.MSBuild.ProjectManager
        Found referenced project outside root directory: /home/azureuser/Documents/iotedge/test/modules/TestResultCoordinator/TestResultCoordinator.csproj
[info]: OmniSharp.MSBuild.ProjectManager
        Adding project '/home/azureuser/Documents/iotedge/test/modules/TestResultCoordinator/TestResultCoordinator.csproj'
[info]: OmniSharp.MSBuild.ProjectManager
        Queue project update for '/home/azureuser/Documents/iotedge/test/modules/TestResultCoordinator/TestResultCoordinator.csproj'
[info]: OmniSharp.MSBuild.ProjectManager
        Loading project: /home/azureuser/Documents/iotedge/edge-util/src/es6numberserializer/es6numberserializer.csproj
[info]: OmniSharp.MSBuild.ProjectManager
        Successfully loaded project file '/home/azureuser/Documents/iotedge/edge-util/src/es6numberserializer/es6numberserializer.csproj'.
[info]: OmniSharp.MSBuild.ProjectManager
        Loading project: /home/azureuser/Documents/iotedge/edge-util/src/jsoncanonicalizer/jsoncanonicalizer.csproj
[info]: OmniSharp.MSBuild.ProjectManager
        Successfully loaded project file '/home/azureuser/Documents/iotedge/edge-util/src/jsoncanonicalizer/jsoncanonicalizer.csproj'.
[info]: OmniSharp.MSBuild.ProjectManager
        Loading project: /home/azureuser/Documents/iotedge/test/modules/ModuleLib/Microsoft.Azure.Devices.Edge.ModuleUtil.csproj
[info]: OmniSharp.MSBuild.ProjectManager
        Successfully loaded project file '/home/azureuser/Documents/iotedge/test/modules/ModuleLib/Microsoft.Azure.Devices.Edge.ModuleUtil.csproj'.
[info]: OmniSharp.MSBuild.ProjectManager
        Loading project: /home/azureuser/Documents/iotedge/edge-util/src/Microsoft.Azure.Devices.Edge.Storage/Microsoft.Azure.Devices.Edge.Storage.csproj
[info]: OmniSharp.MSBuild.ProjectManager
        Successfully loaded project file '/home/azureuser/Documents/iotedge/edge-util/src/Microsoft.Azure.Devices.Edge.Storage/Microsoft.Azure.Devices.Edge.Storage.csproj'.
[info]: OmniSharp.MSBuild.ProjectManager
        Loading project: /home/azureuser/Documents/iotedge/edge-util/src/Microsoft.Azure.Devices.Edge.Storage.RocksDb/Microsoft.Azure.Devices.Edge.Storage.RocksDb.csproj
[info]: OmniSharp.MSBuild.ProjectManager
        Successfully loaded project file '/home/azureuser/Documents/iotedge/edge-util/src/Microsoft.Azure.Devices.Edge.Storage.RocksDb/Microsoft.Azure.Devices.Edge.Storage.RocksDb.csproj'.
[info]: OmniSharp.MSBuild.ProjectManager
        Loading project: /home/azureuser/Documents/iotedge/edge-util/src/Microsoft.Azure.Devices.Edge.Util/Microsoft.Azure.Devices.Edge.Util.csproj
[info]: OmniSharp.MSBuild.ProjectManager
        Successfully loaded project file '/home/azureuser/Documents/iotedge/edge-util/src/Microsoft.Azure.Devices.Edge.Util/Microsoft.Azure.Devices.Edge.Util.csproj'.
[info]: OmniSharp.MSBuild.ProjectManager
        Loading project: /home/azureuser/Documents/iotedge/edge-util/test/Microsoft.Azure.Devices.Edge.Util.Test.Common/Microsoft.Azure.Devices.Edge.Util.Test.Common.csproj
[info]: OmniSharp.MSBuild.ProjectManager
        Successfully loaded project file '/home/azureuser/Documents/iotedge/edge-util/test/Microsoft.Azure.Devices.Edge.Util.Test.Common/Microsoft.Azure.Devices.Edge.Util.Test.Common.csproj'.
[info]: OmniSharp.MSBuild.ProjectManager
        Loading project: /home/azureuser/Documents/iotedge/test/modules/TestResultCoordinator/TestResultCoordinator.csproj
[info]: OmniSharp.MSBuild.ProjectManager
        Successfully loaded project file '/home/azureuser/Documents/iotedge/test/modules/TestResultCoordinator/TestResultCoordinator.csproj'.
[info]: OmniSharp.MSBuild.ProjectManager
        Update project: es6numberserializer
[info]: OmniSharp.MSBuild.ProjectManager
        Update project: jsoncanonicalizer
[info]: OmniSharp.MSBuild.ProjectManager
        Update project: Microsoft.Azure.Devices.Edge.ModuleUtil
[info]: OmniSharp.OmniSharpWorkspace
        Adding analyzer reference: /home/azureuser/.nuget/packages/stylecop.analyzers.unstable/1.2.0.164/analyzers/dotnet/cs/StyleCop.Analyzers.CodeFixes.dll
[info]: OmniSharp.OmniSharpWorkspace
        Adding analyzer reference: /home/azureuser/.nuget/packages/stylecop.analyzers.unstable/1.2.0.164/analyzers/dotnet/cs/StyleCop.Analyzers.dll
[info]: OmniSharp.MSBuild.ProjectManager
        Update project: Microsoft.Azure.Devices.Edge.Storage
[info]: OmniSharp.OmniSharpWorkspace
        Adding analyzer reference: /home/azureuser/.nuget/packages/stylecop.analyzers.unstable/1.2.0.164/analyzers/dotnet/cs/StyleCop.Analyzers.CodeFixes.dll
[info]: OmniSharp.OmniSharpWorkspace
        Adding analyzer reference: /home/azureuser/.nuget/packages/stylecop.analyzers.unstable/1.2.0.164/analyzers/dotnet/cs/StyleCop.Analyzers.dll
[info]: OmniSharp.MSBuild.ProjectManager
        Update project: Microsoft.Azure.Devices.Edge.Storage.RocksDb
[info]: OmniSharp.OmniSharpWorkspace
        Adding analyzer reference: /home/azureuser/.nuget/packages/stylecop.analyzers.unstable/1.2.0.164/analyzers/dotnet/cs/StyleCop.Analyzers.CodeFixes.dll
[info]: OmniSharp.OmniSharpWorkspace
        Adding analyzer reference: /home/azureuser/.nuget/packages/stylecop.analyzers.unstable/1.2.0.164/analyzers/dotnet/cs/StyleCop.Analyzers.dll
[info]: OmniSharp.MSBuild.ProjectManager
        Update project: Microsoft.Azure.Devices.Edge.Util
[info]: OmniSharp.OmniSharpWorkspace
        Adding analyzer reference: /home/azureuser/.nuget/packages/stylecop.analyzers.unstable/1.2.0.164/analyzers/dotnet/cs/StyleCop.Analyzers.CodeFixes.dll
[info]: OmniSharp.OmniSharpWorkspace
        Adding analyzer reference: /home/azureuser/.nuget/packages/stylecop.analyzers.unstable/1.2.0.164/analyzers/dotnet/cs/StyleCop.Analyzers.dll
[info]: OmniSharp.MSBuild.ProjectManager
        Update project: Microsoft.Azure.Devices.Edge.Util.Test.Common
[info]: OmniSharp.OmniSharpWorkspace
        Adding analyzer reference: /home/azureuser/.nuget/packages/stylecop.analyzers.unstable/1.2.0.164/analyzers/dotnet/cs/StyleCop.Analyzers.CodeFixes.dll
[info]: OmniSharp.OmniSharpWorkspace
        Adding analyzer reference: /home/azureuser/.nuget/packages/stylecop.analyzers.unstable/1.2.0.164/analyzers/dotnet/cs/StyleCop.Analyzers.dll
[info]: OmniSharp.OmniSharpWorkspace
        Adding analyzer reference: /home/azureuser/.nuget/packages/xunit.analyzers/0.10.0/analyzers/dotnet/cs/xunit.analyzers.dll
[info]: OmniSharp.MSBuild.ProjectManager
        Update project: TestResultCoordinator
[info]: OmniSharp.OmniSharpWorkspace
        Adding analyzer reference: /home/azureuser/.nuget/packages/stylecop.analyzers.unstable/1.2.0.164/analyzers/dotnet/cs/StyleCop.Analyzers.CodeFixes.dll
[info]: OmniSharp.OmniSharpWorkspace
        Adding analyzer reference: /home/azureuser/.nuget/packages/stylecop.analyzers.unstable/1.2.0.164/analyzers/dotnet/cs/StyleCop.Analyzers.dll
[info]: OmniSharp.DotNetTest.VSTestManager
        read: {"MessageType":"TestSession.Connected","Payload":null}
[info]: OmniSharp.DotNetTest.VSTestManager
        read: {"MessageType":"ProtocolVersion","Payload":1}
[info]: OmniSharp.DotNetTest.DebugSessionManager
        Debug session started.

I also tried the instructions for "Full Method", but when attempting to debug I got no more than this (in addition to the above error):

azureuser@andsmi-msft-remove-dev:~/.vscode-server/extensions/ms-dotnettools.csharp-1.23.9/.debugger$ ./vsdbg-ui --server --consoleLogging
Waiting for communication on port 4711...

At this point, I am not too concerned with finding the root cause. Do you have any suggestions for how to bring this devbox back to a working state? I have tried to do a full reset unsuccessfully: