Samsung / netcoredbg

NetCoreDbg is a managed code debugger with GDB/MI, VSCode DAP and CLI interfaces for CoreCLR.
MIT License
836 stars 103 forks source link

`source` of `OutputEvent` is `string` instead of `Source` #157

Closed GniLudio closed 8 months ago

GniLudio commented 10 months ago

When I try to launch the following program using the debug adapter protocol it sends an OutputEvent with "source":"category". HelloCS1.zip

But the protocol specifies that source must be of type Source. (and not string) Output Event Specification

Event Message

<--   E (output): {
    "seq":71, 
    "event":"output",
    "type":"event",
    "body":{
        "category":"console",
        "output":"Application Insights Telemetry: {\"name\":\"AppEvents\",\"time\":\"2024-01-09T10:06:37.8876240Z\",\"iKey\":\"74cc1c9e-3e6e-4d05-b3fc-dde9101d0254\",\"tags\":{\"ai.device.osVersion\":\"Windows\",\"ai.cloud.roleInstance\":\"FERDI-DESKTOP\",\"ai.session.id\":\"f5accd32-d9de-4bf0-aa7e-bfe2bc6e84b6\",\"ai.internal.sdkVersion\":\"dotnetc:2.21.0-429\"},\"data\":{\"baseType\":\"EventData\",\"baseData\":{\"ver\":2,\"name\":\"dotnet/cli/toplevelparser/command\",\"properties\":{\"Docker Container\":\"False\",\"Machine ID Old\":\"a7214164363d5018bb32ae91e91b0d77f8d5baf521db3bec8f4096e042db46e7\",\"OS Architecture\":\"X64\",\"Product Version\":\"8.0.100\",\"Output Redirected\":\"True\",\"Installation Type\":\"Client\",\"verb\":\"cbebeab6e4ac088fa5249254044dadf8a029b76e0355b3a559c3116ab39c9962\",\"Runtime Id\":\"win-x64\",\"event id\":\"64fb4299-a65b-4e9c-8a7c-c04bc92c72b9\",\"Continuous Integration\":\"False\",\"Product Type\":\"101\",\"Machine ID\":\"a7214164363d5018bb32ae91e91b0d77f8d5baf521db3bec8f4096e042db46e7\",\"Kernel Version\":\"Microsoft Windows 10.0.23481\",\"Current Path Hash\":\"4ab9b30c57572349bafc64c4351815f3109d54aba691362cbcb7804599fd68f5\",\"OS Platform\":\"Windows\",\"OS Version\":\"10.0.23481\"},\"measurements\":{\"Parse Time\":90.1553,\"Startup Time\":176.0969}}}}\r\n",
        "source":"category"
    }
}

log.txt (--engineLogging)

-> (C) {"type":"request","command":"initialize","arguments":{"pathFormat":"path","clientID":"vscode","clientName":"Visual Studio Code","adapterID":"coreclr","locale":"en","linesStartAt1":true,"columnsStartAt1":true},"seq":1}
<- (E) {"body":{"capabilities":{"exceptionBreakpointFilters":[{"filter":"all","label":"all"},{"filter":"user-unhandled","label":"user-unhandled"}],"supportTerminateDebuggee":true,"supportsCancelRequest":true,"supportsConditionalBreakpoints":true,"supportsConfigurationDoneRequest":true,"supportsExceptionFilterOptions":true,"supportsExceptionInfoRequest":true,"supportsExceptionOptions":false,"supportsFunctionBreakpoints":true,"supportsSetExpression":true,"supportsSetVariable":true,"supportsTerminateRequest":true}},"event":"capabilities","seq":"1","type":"event"}
<- (E) {"body":{},"event":"initialized","seq":"2","type":"event"}
<- (R) {"body":{"exceptionBreakpointFilters":[{"filter":"all","label":"all"},{"filter":"user-unhandled","label":"user-unhandled"}],"supportTerminateDebuggee":true,"supportsCancelRequest":true,"supportsConditionalBreakpoints":true,"supportsConfigurationDoneRequest":true,"supportsExceptionFilterOptions":true,"supportsExceptionInfoRequest":true,"supportsExceptionOptions":false,"supportsFunctionBreakpoints":true,"supportsSetExpression":true,"supportsSetVariable":true,"supportsTerminateRequest":true},"command":"initialize","request_seq":1,"seq":"3","success":true,"type":"response"}
-> (C) {"type":"request","command":"launch","arguments":{"name":".NET Core Launch with netcoredbg","type":"coreclr","preLaunchTask":"build","program":"..\\..\\..\\..\\SamplePrograms\\HelloCS1\\bin\\Debug\\net8.0-windows\\ConsoleApplication.dll","args":[],"cwd":"..\\..\\..\\..\\SamplePrograms\\HelloCS1","env":{},"console":"integratedTerminal","stopAtEntry":false,"justMyCode":false,"enableStepFiltering":true,"internalConsoleOptions":"","__sessionId":""},"seq":2}
<- (R) {"body":{},"command":"launch","request_seq":2,"seq":"4","success":true,"type":"response"}
-> (C) {"type":"request","command":"configurationDone","arguments":{},"seq":3}
<- (E) {"body":{"isLocalProcess":true,"name":"dotnet","startMethod":"launch","systemProcessId":252},"event":"process","seq":"5","type":"event"}
<- (R) {"body":{},"command":"configurationDone","request_seq":3,"seq":"6","success":true,"type":"response"}
<- (E) {"body":{"module":{"id":"5abecb93-434c-4299-acd0-1d522fdf8da2","name":"System.Private.CoreLib.dll","path":"C:\\Program Files\\dotnet\\shared\\Microsoft.NETCore.App\\8.0.0\\System.Private.CoreLib.dll","symbolStatus":"Symbols not found."},"reason":"new"},"event":"module","seq":"7","type":"event"}
<- (E) {"body":{"reason":"started","threadId":4336},"event":"thread","seq":"8","type":"event"}
<- (E) {"body":{"module":{"id":"e071a12f-1646-4fbb-aad3-819229422607","name":"dotnet.dll","path":"C:\\Program Files\\dotnet\\sdk\\8.0.100\\dotnet.dll","symbolStatus":"Symbols not found."},"reason":"new"},"event":"module","seq":"9","type":"event"}
<- (E) {"body":{"module":{"id":"d05e0cb3-3e7a-4a3a-ac33-8113eae805b3","name":"System.Runtime.dll","path":"C:\\Program Files\\dotnet\\shared\\Microsoft.NETCore.App\\8.0.0\\System.Runtime.dll","symbolStatus":"Symbols not found."},"reason":"new"},"event":"module","seq":"10","type":"event"}
<- (E) {"body":{"module":{"id":"e9914796-1946-419c-943b-352adf3e054a","name":"System.Console.dll","path":"C:\\Program Files\\dotnet\\shared\\Microsoft.NETCore.App\\8.0.0\\System.Console.dll","symbolStatus":"Symbols not found."},"reason":"new"},"event":"module","seq":"11","type":"event"}
<- (E) {"body":{"module":{"id":"431afadf-7fdf-4127-9849-87199ddee24d","name":"System.Threading.dll","path":"C:\\Program Files\\dotnet\\shared\\Microsoft.NETCore.App\\8.0.0\\System.Threading.dll","symbolStatus":"Symbols not found."},"reason":"new"},"event":"module","seq":"12","type":"event"}
<- (E) {"body":{"module":{"id":"b80d719e-3194-4072-8157-3f0b9a29ca5b","name":"System.Text.Encoding.Extensions.dll","path":"C:\\Program Files\\dotnet\\shared\\Microsoft.NETCore.App\\8.0.0\\System.Text.Encoding.Extensions.dll","symbolStatus":"Symbols not found."},"reason":"new"},"event":"module","seq":"13","type":"event"}
<- (E) {"body":{"module":{"id":"934d95e3-d38b-4dcd-92d7-2db01c8bb03c","name":"System.Runtime.InteropServices.dll","path":"C:\\Program Files\\dotnet\\shared\\Microsoft.NETCore.App\\8.0.0\\System.Runtime.InteropServices.dll","symbolStatus":"Symbols not found."},"reason":"new"},"event":"module","seq":"14","type":"event"}
<- (E) {"body":{"module":{"id":"e2d339bd-3cb9-49fe-b05e-7d5e6ed12f29","name":"System.Diagnostics.Process.dll","path":"C:\\Program Files\\dotnet\\shared\\Microsoft.NETCore.App\\8.0.0\\System.Diagnostics.Process.dll","symbolStatus":"Symbols not found."},"reason":"new"},"event":"module","seq":"15","type":"event"}
<- (E) {"body":{"module":{"id":"444a3c28-7311-4da9-9b65-2d95efabbae1","name":"System.ComponentModel.Primitives.dll","path":"C:\\Program Files\\dotnet\\shared\\Microsoft.NETCore.App\\8.0.0\\System.ComponentModel.Primitives.dll","symbolStatus":"Symbols not found."},"reason":"new"},"event":"module","seq":"16","type":"event"}
<- (E) {"body":{"module":{"id":"469a6288-3cc3-4d3d-b99a-3539b93baeea","name":"Microsoft.Win32.Primitives.dll","path":"C:\\Program Files\\dotnet\\shared\\Microsoft.NETCore.App\\8.0.0\\Microsoft.Win32.Primitives.dll","symbolStatus":"Symbols not found."},"reason":"new"},"event":"module","seq":"17","type":"event"}
<- (E) {"body":{"module":{"id":"b7257268-97fd-4236-8cdb-80a2bbff4c2c","name":"Microsoft.DotNet.Cli.Utils.dll","path":"C:\\Program Files\\dotnet\\sdk\\8.0.100\\Microsoft.DotNet.Cli.Utils.dll","symbolStatus":"Symbols not found."},"reason":"new"},"event":"module","seq":"18","type":"event"}
<- (E) {"body":{"module":{"id":"023f5e95-da3d-4684-98b4-2fee2ca9e299","name":"System.Diagnostics.Tracing.dll","path":"C:\\Program Files\\dotnet\\shared\\Microsoft.NETCore.App\\8.0.0\\System.Diagnostics.Tracing.dll","symbolStatus":"Symbols not found."},"reason":"new"},"event":"module","seq":"19","type":"event"}
<- (E) {"body":{"module":{"id":"f9c1c6aa-560e-4f28-87e7-5b6c80d5a948","name":"System.Text.Encoding.CodePages.dll","path":"C:\\Program Files\\dotnet\\shared\\Microsoft.NETCore.App\\8.0.0\\System.Text.Encoding.CodePages.dll","symbolStatus":"Symbols not found."},"reason":"new"},"event":"module","seq":"20","type":"event"}
<- (E) {"body":{"module":{"id":"4877680d-4c74-4e41-b307-a6e3d2771deb","name":"System.Collections.dll","path":"C:\\Program Files\\dotnet\\shared\\Microsoft.NETCore.App\\8.0.0\\System.Collections.dll","symbolStatus":"Symbols not found."},"reason":"new"},"event":"module","seq":"21","type":"event"}
<- (E) {"body":{"module":{"id":"215e22c4-3dc1-47ca-9700-fb338de4acb8","name":"System.CommandLine.dll","path":"C:\\Program Files\\dotnet\\sdk\\8.0.100\\System.CommandLine.dll","symbolStatus":"Symbols not found."},"reason":"new"},"event":"module","seq":"22","type":"event"}
<- (E) {"body":{"module":{"id":"645d21fc-2f50-41b7-b666-496f14d1e9cf","name":"Microsoft.DotNet.Configurer.dll","path":"C:\\Program Files\\dotnet\\sdk\\8.0.100\\Microsoft.DotNet.Configurer.dll","symbolStatus":"Symbols not found."},"reason":"new"},"event":"module","seq":"23","type":"event"}
<- (E) {"body":{"module":{"id":"d9f68112-9e71-4692-87bd-9fcae3689aff","name":"Microsoft.DotNet.InternalAbstractions.dll","path":"C:\\Program Files\\dotnet\\sdk\\8.0.100\\Microsoft.DotNet.InternalAbstractions.dll","symbolStatus":"Symbols not found."},"reason":"new"},"event":"module","seq":"24","type":"event"}
<- (E) {"body":{"module":{"id":"e386c97e-39e4-4f5f-8234-97fe3429c5be","name":"netstandard.dll","path":"C:\\Program Files\\dotnet\\shared\\Microsoft.NETCore.App\\8.0.0\\netstandard.dll","symbolStatus":"Symbols not found."},"reason":"new"},"event":"module","seq":"25","type":"event"}
<- (E) {"body":{"module":{"id":"b7cd4f19-6f76-45f4-94ac-7c6373e8a417","name":"Microsoft.TemplateEngine.Cli.dll","path":"C:\\Program Files\\dotnet\\sdk\\8.0.100\\Microsoft.TemplateEngine.Cli.dll","symbolStatus":"Symbols not found."},"reason":"new"},"event":"module","seq":"26","type":"event"}
<- (E) {"body":{"module":{"id":"37738dd3-4e06-4f04-9476-a3bdc1add743","name":"Microsoft.TemplateEngine.Edge.dll","path":"C:\\Program Files\\dotnet\\sdk\\8.0.100\\Microsoft.TemplateEngine.Edge.dll","symbolStatus":"Symbols not found."},"reason":"new"},"event":"module","seq":"27","type":"event"}
<- (E) {"body":{"module":{"id":"a7fbcaa7-47f4-4664-81ba-0588ab35b452","name":"Microsoft.TemplateEngine.Abstractions.dll","path":"C:\\Program Files\\dotnet\\sdk\\8.0.100\\Microsoft.TemplateEngine.Abstractions.dll","symbolStatus":"Symbols not found."},"reason":"new"},"event":"module","seq":"28","type":"event"}
<- (E) {"body":{"module":{"id":"fc2de29b-920b-4475-950c-0adf08f18d99","name":"Microsoft.Extensions.Logging.Abstractions.dll","path":"C:\\Program Files\\dotnet\\sdk\\8.0.100\\Microsoft.Extensions.Logging.Abstractions.dll","symbolStatus":"Symbols not found."},"reason":"new"},"event":"module","seq":"29","type":"event"}
<- (E) {"body":{"module":{"id":"8a600f64-7b88-431b-954c-15cb3c95697e","name":"Microsoft.TemplateSearch.Common.dll","path":"C:\\Program Files\\dotnet\\sdk\\8.0.100\\Microsoft.TemplateSearch.Common.dll","symbolStatus":"Symbols not found."},"reason":"new"},"event":"module","seq":"30","type":"event"}
<- (E) {"body":{"module":{"id":"c388d6a3-6e57-48e1-a3c5-9b48a4fbbdad","name":"System.Linq.dll","path":"C:\\Program Files\\dotnet\\shared\\Microsoft.NETCore.App\\8.0.0\\System.Linq.dll","symbolStatus":"Symbols not found."},"reason":"new"},"event":"module","seq":"31","type":"event"}
<- (E) {"body":{"module":{"id":"3ccd1dee-7e8a-474f-a215-0d3e949b1d80","name":"NuGet.Configuration.dll","path":"C:\\Program Files\\dotnet\\sdk\\8.0.100\\NuGet.Configuration.dll","symbolStatus":"Symbols not found."},"reason":"new"},"event":"module","seq":"32","type":"event"}
<- (E) {"body":{"module":{"id":"5e6e7bb4-1590-45cd-98b7-5764415189f3","name":"NuGet.Protocol.dll","path":"C:\\Program Files\\dotnet\\sdk\\8.0.100\\NuGet.Protocol.dll","symbolStatus":"Symbols not found."},"reason":"new"},"event":"module","seq":"33","type":"event"}
<- (E) {"body":{"module":{"id":"3beafca1-4e25-4a4f-947b-1c268868a27d","name":"System.Private.Uri.dll","path":"C:\\Program Files\\dotnet\\shared\\Microsoft.NETCore.App\\8.0.0\\System.Private.Uri.dll","symbolStatus":"Symbols not found."},"reason":"new"},"event":"module","seq":"34","type":"event"}
<- (E) {"body":{"module":{"id":"c5110664-0ddc-45ed-ba19-e2f65604c60e","name":"NuGet.Common.dll","path":"C:\\Program Files\\dotnet\\sdk\\8.0.100\\NuGet.Common.dll","symbolStatus":"Symbols not found."},"reason":"new"},"event":"module","seq":"35","type":"event"}
<- (E) {"body":{"module":{"id":"a9d2026d-7941-46f2-a336-a9c4914a0a5e","name":"System.Memory.dll","path":"C:\\Program Files\\dotnet\\shared\\Microsoft.NETCore.App\\8.0.0\\System.Memory.dll","symbolStatus":"Symbols not found."},"reason":"new"},"event":"module","seq":"36","type":"event"}
<- (E) {"body":{"reason":"started","threadId":8328},"event":"thread","seq":"37","type":"event"}
<- (E) {"body":{"reason":"started","threadId":15852},"event":"thread","seq":"38","type":"event"}
<- (E) {"body":{"reason":"started","threadId":16024},"event":"thread","seq":"39","type":"event"}
<- (E) {"body":{"module":{"id":"5f535f25-2bad-416a-acc7-4335fbdd5dd0","name":"Microsoft.ApplicationInsights.dll","path":"C:\\Program Files\\dotnet\\sdk\\8.0.100\\Microsoft.ApplicationInsights.dll","symbolStatus":"Symbols not found."},"reason":"new"},"event":"module","seq":"40","type":"event"}
<- (E) {"body":{"reason":"started","threadId":4736},"event":"thread","seq":"41","type":"event"}
<- (E) {"body":{"reason":"started","threadId":16036},"event":"thread","seq":"42","type":"event"}
<- (E) {"body":{"reason":"started","threadId":8200},"event":"thread","seq":"43","type":"event"}
<- (E) {"body":{"reason":"started","threadId":8152},"event":"thread","seq":"44","type":"event"}
<- (E) {"body":{"module":{"id":"59d07b62-71db-46dd-bf29-d2d5ca4c6709","name":"System.Security.Cryptography.dll","path":"C:\\Program Files\\dotnet\\shared\\Microsoft.NETCore.App\\8.0.0\\System.Security.Cryptography.dll","symbolStatus":"Symbols not found."},"reason":"new"},"event":"module","seq":"45","type":"event"}
<- (E) {"body":{"module":{"id":"ec172918-3b3f-4370-9ec5-ba84bc503623","name":"System.Diagnostics.DiagnosticSource.dll","path":"C:\\Program Files\\dotnet\\shared\\Microsoft.NETCore.App\\8.0.0\\System.Diagnostics.DiagnosticSource.dll","symbolStatus":"Symbols not found."},"reason":"new"},"event":"module","seq":"46","type":"event"}
<- (E) {"body":{"module":{"id":"56237616-9f25-4bdd-b980-129850b7129a","name":"NuGet.Frameworks.dll","path":"C:\\Program Files\\dotnet\\sdk\\8.0.100\\NuGet.Frameworks.dll","symbolStatus":"Symbols not found."},"reason":"new"},"event":"module","seq":"47","type":"event"}
<- (E) {"body":{"module":{"id":"a07af72d-148a-4ed3-9ba7-bd1013d44fa3","name":"System.IO.MemoryMappedFiles.dll","path":"C:\\Program Files\\dotnet\\shared\\Microsoft.NETCore.App\\8.0.0\\System.IO.MemoryMappedFiles.dll","symbolStatus":"Symbols not found."},"reason":"new"},"event":"module","seq":"48","type":"event"}
<- (E) {"body":{"module":{"id":"463457b7-d2bd-44a3-805d-6a0d4b014332","name":"Microsoft.Build.dll","path":"C:\\Program Files\\dotnet\\sdk\\8.0.100\\Microsoft.Build.dll","symbolStatus":"Symbols not found."},"reason":"new"},"event":"module","seq":"49","type":"event"}
<- (E) {"body":{"module":{"id":"4dcdd8b0-0745-45a4-9a88-cafb1d50ec9d","name":"System.Net.Http.dll","path":"C:\\Program Files\\dotnet\\shared\\Microsoft.NETCore.App\\8.0.0\\System.Net.Http.dll","symbolStatus":"Symbols not found."},"reason":"new"},"event":"module","seq":"50","type":"event"}
<- (E) {"body":{"module":{"id":"56bf59e8-bb3f-4b94-ae2d-396772852374","name":"Microsoft.Build.Framework.dll","path":"C:\\Program Files\\dotnet\\sdk\\8.0.100\\Microsoft.Build.Framework.dll","symbolStatus":"Symbols not found."},"reason":"new"},"event":"module","seq":"51","type":"event"}
<- (E) {"body":{"module":{"id":"fba06c59-0803-4c20-86f5-3b0655467d70","name":"System.Net.Primitives.dll","path":"C:\\Program Files\\dotnet\\shared\\Microsoft.NETCore.App\\8.0.0\\System.Net.Primitives.dll","symbolStatus":"Symbols not found."},"reason":"new"},"event":"module","seq":"52","type":"event"}
<- (E) {"body":{"reason":"started","threadId":3368},"event":"thread","seq":"53","type":"event"}
<- (E) {"body":{"module":{"id":"30eb8fa6-bd70-41e4-8cd9-a0532830b027","name":"System.Net.Security.dll","path":"C:\\Program Files\\dotnet\\shared\\Microsoft.NETCore.App\\8.0.0\\System.Net.Security.dll","symbolStatus":"Symbols not found."},"reason":"new"},"event":"module","seq":"54","type":"event"}
<- (E) {"body":{"module":{"id":"2bc5c355-a2b8-409c-9641-7ff9e8f710db","name":"System.Net.Requests.dll","path":"C:\\Program Files\\dotnet\\shared\\Microsoft.NETCore.App\\8.0.0\\System.Net.Requests.dll","symbolStatus":"Symbols not found."},"reason":"new"},"event":"module","seq":"55","type":"event"}
<- (E) {"body":{"module":{"id":"11377fe9-377a-4a35-a5a1-dc28895863ae","name":"System.Net.NetworkInformation.dll","path":"C:\\Program Files\\dotnet\\shared\\Microsoft.NETCore.App\\8.0.0\\System.Net.NetworkInformation.dll","symbolStatus":"Symbols not found."},"reason":"new"},"event":"module","seq":"56","type":"event"}
<- (E) {"body":{"reason":"started","threadId":15972},"event":"thread","seq":"57","type":"event"}
<- (E) {"body":{"module":{"id":"db47c901-fad3-4b3f-a588-55f619a6afd6","name":"System.Collections.Concurrent.dll","path":"C:\\Program Files\\dotnet\\shared\\Microsoft.NETCore.App\\8.0.0\\System.Collections.Concurrent.dll","symbolStatus":"Symbols not found."},"reason":"new"},"event":"module","seq":"58","type":"event"}
<- (E) {"body":{"reason":"started","threadId":4248},"event":"thread","seq":"59","type":"event"}
<- (E) {"body":{"module":{"id":"f6947404-e8f9-4d83-828e-5a6638b4518b","name":"System.Xml.XDocument.dll","path":"C:\\Program Files\\dotnet\\shared\\Microsoft.NETCore.App\\8.0.0\\System.Xml.XDocument.dll","symbolStatus":"Symbols not found."},"reason":"new"},"event":"module","seq":"60","type":"event"}
<- (E) {"body":{"module":{"id":"69da3213-cf69-4b8d-b57e-5db2e9a2b73c","name":"System.Private.Xml.Linq.dll","path":"C:\\Program Files\\dotnet\\shared\\Microsoft.NETCore.App\\8.0.0\\System.Private.Xml.Linq.dll","symbolStatus":"Symbols not found."},"reason":"new"},"event":"module","seq":"61","type":"event"}
<- (E) {"body":{"module":{"id":"e7274a35-fc9c-4399-a41a-53dc2b1f1c40","name":"System.Threading.Thread.dll","path":"C:\\Program Files\\dotnet\\shared\\Microsoft.NETCore.App\\8.0.0\\System.Threading.Thread.dll","symbolStatus":"Symbols not found."},"reason":"new"},"event":"module","seq":"62","type":"event"}
<- (E) {"body":{"module":{"id":"2108f805-6359-459d-b5f8-f00a416deb10","name":"System.Xml.ReaderWriter.dll","path":"C:\\Program Files\\dotnet\\shared\\Microsoft.NETCore.App\\8.0.0\\System.Xml.ReaderWriter.dll","symbolStatus":"Symbols not found."},"reason":"new"},"event":"module","seq":"63","type":"event"}
<- (E) {"body":{"module":{"id":"49884622-b381-4654-973b-63d64332cff9","name":"System.Runtime.Intrinsics.dll","path":"C:\\Program Files\\dotnet\\shared\\Microsoft.NETCore.App\\8.0.0\\System.Runtime.Intrinsics.dll","symbolStatus":"Symbols not found."},"reason":"new"},"event":"module","seq":"64","type":"event"}
<- (E) {"body":{"module":{"id":"39dc06cf-976d-45fb-84b8-19a41440074c","name":"System.Private.Xml.dll","path":"C:\\Program Files\\dotnet\\shared\\Microsoft.NETCore.App\\8.0.0\\System.Private.Xml.dll","symbolStatus":"Symbols not found."},"reason":"new"},"event":"module","seq":"65","type":"event"}
<- (E) {"body":{"reason":"exited","threadId":4248},"event":"thread","seq":"66","type":"event"}
<- (E) {"body":{"reason":"started","threadId":3032},"event":"thread","seq":"67","type":"event"}
<- (E) {"body":{"module":{"id":"81f13c77-6066-43b2-a15f-5473f935243a","name":"System.Text.RegularExpressions.dll","path":"C:\\Program Files\\dotnet\\shared\\Microsoft.NETCore.App\\8.0.0\\System.Text.RegularExpressions.dll","symbolStatus":"Symbols not found."},"reason":"new"},"event":"module","seq":"68","type":"event"}
<- (E) {"body":{"module":{"id":"9fc3c862-f78b-44ac-bf88-b60634337225","name":"Microsoft.Win32.Registry.dll","path":"C:\\Program Files\\dotnet\\shared\\Microsoft.NETCore.App\\8.0.0\\Microsoft.Win32.Registry.dll","symbolStatus":"Symbols not found."},"reason":"new"},"event":"module","seq":"69","type":"event"}
<- (E) {"body":{"module":{"id":"d951dd43-70e0-487c-9d2c-99367871f862","name":"System.Net.NameResolution.dll","path":"C:\\Program Files\\dotnet\\shared\\Microsoft.NETCore.App\\8.0.0\\System.Net.NameResolution.dll","symbolStatus":"Symbols not found."},"reason":"new"},"event":"module","seq":"70","type":"event"}
<- (E) {"body":{"module":{"id":"3a66dd02-e39d-450f-a6d7-289365b54037","name":"System.IO.Compression.dll","path":"C:\\Program Files\\dotnet\\shared\\Microsoft.NETCore.App\\8.0.0\\System.IO.Compression.dll","symbolStatus":"Symbols not found."},"reason":"new"},"event":"module","seq":"72","type":"event"}
<- (E) {"body":{"module":{"id":"71b4ecba-a894-4829-ad09-e6bd462ffc2a","name":"System.Net.Sockets.dll","path":"C:\\Program Files\\dotnet\\shared\\Microsoft.NETCore.App\\8.0.0\\System.Net.Sockets.dll","symbolStatus":"Symbols not found."},"reason":"new"},"event":"module","seq":"73","type":"event"}
<- (E) {"body":{"module":{"id":"5995e205-04ee-436a-9336-2f51b27cb0b3","name":"System.Threading.Overlapped.dll","path":"C:\\Program Files\\dotnet\\shared\\Microsoft.NETCore.App\\8.0.0\\System.Threading.Overlapped.dll","symbolStatus":"Symbols not found."},"reason":"new"},"event":"module","seq":"74","type":"event"}
<- (E) {"body":{"module":{"id":"2d20326b-a707-413b-8900-fb70be26ee31","name":"System.Threading.ThreadPool.dll","path":"C:\\Program Files\\dotnet\\shared\\Microsoft.NETCore.App\\8.0.0\\System.Threading.ThreadPool.dll","symbolStatus":"Symbols not found."},"reason":"new"},"event":"module","seq":"75","type":"event"}
<- (E) {"body":{"exitCode":0},"event":"exited","seq":"76","type":"event"}
<- (E) {"body":{},"event":"terminated","seq":"77","type":"event"}

Manual Logs

host = new DebugProtocolHost(process.StandardInput.BaseStream, process.StandardOutput.BaseStream);
host.LogMessage += (_, args) => Console.WriteLine($"LogMessage\t{args.Category}\t{args.Message}");
host.DispatcherError += (_, args) => Console.WriteLine($"DispatcherError\t{args.Exception.Message}");
host.ResponseTimeThresholdExceeded += (_, args) => Console.WriteLine($"ResponseTimeThresholdExceeded\t{args.Command}\t{args.SequenceId}\t{args.Threshold}");
LogMessage      Trace   --> C (initialize-1): {"type":"request","command":"initialize","arguments":{"pathFormat":"path","clientID":"vscode","clientName":"Visual Studio Code","adapterID":"coreclr","locale":"en","linesStartAt1":true,"columnsStartAt1":true},"seq":1}
LogMessage      Trace   <--   E (capabilities): {"body":{"capabilities":{"exceptionBreakpointFilters":[{"filter":"all","label":"all"},{"filter":"user-unhandled","label":"user-unhandled"}],"supportTerminateDebuggee":true,"supportsCancelRequest":true,"supportsConditionalBreakpoints":true,"supportsConfigurationDoneRequest":true,"supportsExceptionFilterOptions":true,"supportsExceptionInfoRequest":true,"supportsExceptionOptions":false,"supportsFunctionBreakpoints":true,"supportsSetExpression":true,"supportsSetVariable":true,"supportsTerminateRequest":true}},"event":"capabilities","seq":"1","type":"event"}
LogMessage      Trace   <--   E (initialized): {"body":{},"event":"initialized","seq":"2","type":"event"}
LogMessage      Trace   <--   R (initialize-1) [292 ms]: {"body":{"exceptionBreakpointFilters":[{"filter":"all","label":"all"},{"filter":"user-unhandled","label":"user-unhandled"}],"supportTerminateDebuggee":true,"supportsCancelRequest":true,"supportsConditionalBreakpoints":true,"supportsConfigurationDoneRequest":true,"supportsExceptionFilterOptions":true,"supportsExceptionInfoRequest":true,"supportsExceptionOptions":false,"supportsFunctionBreakpoints":true,"supportsSetExpression":true,"supportsSetVariable":true,"supportsTerminateRequest":true},"command":"initialize","request_seq":1,"seq":"3","success":true,"type":"response"}
LogMessage      Trace   --> C (launch-2): {"type":"request","command":"launch","arguments":{"name":".NET Core Launch with netcoredbg","type":"coreclr","preLaunchTask":"build","program":"..\\..\\..\\..\\SamplePrograms\\HelloCS1\\bin\\Debug\\net8.0-windows\\ConsoleApplication.dll","args":[],"cwd":"..\\..\\..\\..\\SamplePrograms\\HelloCS1","env":{},"console":"integratedTerminal","stopAtEntry":false,"justMyCode":false,"enableStepFiltering":true,"internalConsoleOptions":"","__sessionId":""},"seq":2}
LogMessage      Trace   <--   R (launch-2) [10 ms]: {"body":{},"command":"launch","request_seq":2,"seq":"4","success":true,"type":"response"}
LogMessage      Trace   --> C (configurationDone-3): {"type":"request","command":"configurationDone","arguments":{},"seq":3}
LogMessage      Trace   <--   E (process): {"body":{"isLocalProcess":true,"name":"dotnet","startMethod":"launch","systemProcessId":252},"event":"process","seq":"5","type":"event"}
LogMessage      Trace   <--   R (configurationDone-3) [98 ms]: {"body":{},"command":"configurationDone","request_seq":3,"seq":"6","success":true,"type":"response"}
LogMessage      Trace   <--   E (module): {"body":{"module":{"id":"5abecb93-434c-4299-acd0-1d522fdf8da2","name":"System.Private.CoreLib.dll","path":"C:\\Program Files\\dotnet\\shared\\Microsoft.NETCore.App\\8.0.0\\System.Private.CoreLib.dll","symbolStatus":"Symbols not found."},"reason":"new"},"event":"module","seq":"7","type":"event"}
LogMessage      Trace   <--   E (thread): {"body":{"reason":"started","threadId":4336},"event":"thread","seq":"8","type":"event"}
LogMessage      Trace   <--   E (module): {"body":{"module":{"id":"e071a12f-1646-4fbb-aad3-819229422607","name":"dotnet.dll","path":"C:\\Program Files\\dotnet\\sdk\\8.0.100\\dotnet.dll","symbolStatus":"Symbols not found."},"reason":"new"},"event":"module","seq":"9","type":"event"}
LogMessage      Trace   <--   E (module): {"body":{"module":{"id":"d05e0cb3-3e7a-4a3a-ac33-8113eae805b3","name":"System.Runtime.dll","path":"C:\\Program Files\\dotnet\\shared\\Microsoft.NETCore.App\\8.0.0\\System.Runtime.dll","symbolStatus":"Symbols not found."},"reason":"new"},"event":"module","seq":"10","type":"event"}
LogMessage      Trace   <--   E (module): {"body":{"module":{"id":"e9914796-1946-419c-943b-352adf3e054a","name":"System.Console.dll","path":"C:\\Program Files\\dotnet\\shared\\Microsoft.NETCore.App\\8.0.0\\System.Console.dll","symbolStatus":"Symbols not found."},"reason":"new"},"event":"module","seq":"11","type":"event"}
LogMessage      Trace   <--   E (module): {"body":{"module":{"id":"431afadf-7fdf-4127-9849-87199ddee24d","name":"System.Threading.dll","path":"C:\\Program Files\\dotnet\\shared\\Microsoft.NETCore.App\\8.0.0\\System.Threading.dll","symbolStatus":"Symbols not found."},"reason":"new"},"event":"module","seq":"12","type":"event"}
LogMessage      Trace   <--   E (module): {"body":{"module":{"id":"b80d719e-3194-4072-8157-3f0b9a29ca5b","name":"System.Text.Encoding.Extensions.dll","path":"C:\\Program Files\\dotnet\\shared\\Microsoft.NETCore.App\\8.0.0\\System.Text.Encoding.Extensions.dll","symbolStatus":"Symbols not found."},"reason":"new"},"event":"module","seq":"13","type":"event"}
LogMessage      Trace   <--   E (module): {"body":{"module":{"id":"934d95e3-d38b-4dcd-92d7-2db01c8bb03c","name":"System.Runtime.InteropServices.dll","path":"C:\\Program Files\\dotnet\\shared\\Microsoft.NETCore.App\\8.0.0\\System.Runtime.InteropServices.dll","symbolStatus":"Symbols not found."},"reason":"new"},"event":"module","seq":"14","type":"event"}
LogMessage      Trace   <--   E (module): {"body":{"module":{"id":"e2d339bd-3cb9-49fe-b05e-7d5e6ed12f29","name":"System.Diagnostics.Process.dll","path":"C:\\Program Files\\dotnet\\shared\\Microsoft.NETCore.App\\8.0.0\\System.Diagnostics.Process.dll","symbolStatus":"Symbols not found."},"reason":"new"},"event":"module","seq":"15","type":"event"}
LogMessage      Trace   <--   E (module): {"body":{"module":{"id":"444a3c28-7311-4da9-9b65-2d95efabbae1","name":"System.ComponentModel.Primitives.dll","path":"C:\\Program Files\\dotnet\\shared\\Microsoft.NETCore.App\\8.0.0\\System.ComponentModel.Primitives.dll","symbolStatus":"Symbols not found."},"reason":"new"},"event":"module","seq":"16","type":"event"}
LogMessage      Trace   <--   E (module): {"body":{"module":{"id":"469a6288-3cc3-4d3d-b99a-3539b93baeea","name":"Microsoft.Win32.Primitives.dll","path":"C:\\Program Files\\dotnet\\shared\\Microsoft.NETCore.App\\8.0.0\\Microsoft.Win32.Primitives.dll","symbolStatus":"Symbols not found."},"reason":"new"},"event":"module","seq":"17","type":"event"}
LogMessage      Trace   <--   E (module): {"body":{"module":{"id":"b7257268-97fd-4236-8cdb-80a2bbff4c2c","name":"Microsoft.DotNet.Cli.Utils.dll","path":"C:\\Program Files\\dotnet\\sdk\\8.0.100\\Microsoft.DotNet.Cli.Utils.dll","symbolStatus":"Symbols not found."},"reason":"new"},"event":"module","seq":"18","type":"event"}
LogMessage      Trace   <--   E (module): {"body":{"module":{"id":"023f5e95-da3d-4684-98b4-2fee2ca9e299","name":"System.Diagnostics.Tracing.dll","path":"C:\\Program Files\\dotnet\\shared\\Microsoft.NETCore.App\\8.0.0\\System.Diagnostics.Tracing.dll","symbolStatus":"Symbols not found."},"reason":"new"},"event":"module","seq":"19","type":"event"}
LogMessage      Trace   <--   E (module): {"body":{"module":{"id":"f9c1c6aa-560e-4f28-87e7-5b6c80d5a948","name":"System.Text.Encoding.CodePages.dll","path":"C:\\Program Files\\dotnet\\shared\\Microsoft.NETCore.App\\8.0.0\\System.Text.Encoding.CodePages.dll","symbolStatus":"Symbols not found."},"reason":"new"},"event":"module","seq":"20","type":"event"}
LogMessage      Trace   <--   E (module): {"body":{"module":{"id":"4877680d-4c74-4e41-b307-a6e3d2771deb","name":"System.Collections.dll","path":"C:\\Program Files\\dotnet\\shared\\Microsoft.NETCore.App\\8.0.0\\System.Collections.dll","symbolStatus":"Symbols not found."},"reason":"new"},"event":"module","seq":"21","type":"event"}
LogMessage      Trace   <--   E (module): {"body":{"module":{"id":"215e22c4-3dc1-47ca-9700-fb338de4acb8","name":"System.CommandLine.dll","path":"C:\\Program Files\\dotnet\\sdk\\8.0.100\\System.CommandLine.dll","symbolStatus":"Symbols not found."},"reason":"new"},"event":"module","seq":"22","type":"event"}
LogMessage      Trace   <--   E (module): {"body":{"module":{"id":"645d21fc-2f50-41b7-b666-496f14d1e9cf","name":"Microsoft.DotNet.Configurer.dll","path":"C:\\Program Files\\dotnet\\sdk\\8.0.100\\Microsoft.DotNet.Configurer.dll","symbolStatus":"Symbols not found."},"reason":"new"},"event":"module","seq":"23","type":"event"}
LogMessage      Trace   <--   E (module): {"body":{"module":{"id":"d9f68112-9e71-4692-87bd-9fcae3689aff","name":"Microsoft.DotNet.InternalAbstractions.dll","path":"C:\\Program Files\\dotnet\\sdk\\8.0.100\\Microsoft.DotNet.InternalAbstractions.dll","symbolStatus":"Symbols not found."},"reason":"new"},"event":"module","seq":"24","type":"event"}
LogMessage      Trace   <--   E (module): {"body":{"module":{"id":"e386c97e-39e4-4f5f-8234-97fe3429c5be","name":"netstandard.dll","path":"C:\\Program Files\\dotnet\\shared\\Microsoft.NETCore.App\\8.0.0\\netstandard.dll","symbolStatus":"Symbols not found."},"reason":"new"},"event":"module","seq":"25","type":"event"}
LogMessage      Trace   <--   E (module): {"body":{"module":{"id":"b7cd4f19-6f76-45f4-94ac-7c6373e8a417","name":"Microsoft.TemplateEngine.Cli.dll","path":"C:\\Program Files\\dotnet\\sdk\\8.0.100\\Microsoft.TemplateEngine.Cli.dll","symbolStatus":"Symbols not found."},"reason":"new"},"event":"module","seq":"26","type":"event"}
LogMessage      Trace   <--   E (module): {"body":{"module":{"id":"37738dd3-4e06-4f04-9476-a3bdc1add743","name":"Microsoft.TemplateEngine.Edge.dll","path":"C:\\Program Files\\dotnet\\sdk\\8.0.100\\Microsoft.TemplateEngine.Edge.dll","symbolStatus":"Symbols not found."},"reason":"new"},"event":"module","seq":"27","type":"event"}
LogMessage      Trace   <--   E (module): {"body":{"module":{"id":"a7fbcaa7-47f4-4664-81ba-0588ab35b452","name":"Microsoft.TemplateEngine.Abstractions.dll","path":"C:\\Program Files\\dotnet\\sdk\\8.0.100\\Microsoft.TemplateEngine.Abstractions.dll","symbolStatus":"Symbols not found."},"reason":"new"},"event":"module","seq":"28","type":"event"}
LogMessage      Trace   <--   E (module): {"body":{"module":{"id":"fc2de29b-920b-4475-950c-0adf08f18d99","name":"Microsoft.Extensions.Logging.Abstractions.dll","path":"C:\\Program Files\\dotnet\\sdk\\8.0.100\\Microsoft.Extensions.Logging.Abstractions.dll","symbolStatus":"Symbols not found."},"reason":"new"},"event":"module","seq":"29","type":"event"}
LogMessage      Trace   <--   E (module): {"body":{"module":{"id":"8a600f64-7b88-431b-954c-15cb3c95697e","name":"Microsoft.TemplateSearch.Common.dll","path":"C:\\Program Files\\dotnet\\sdk\\8.0.100\\Microsoft.TemplateSearch.Common.dll","symbolStatus":"Symbols not found."},"reason":"new"},"event":"module","seq":"30","type":"event"}
LogMessage      Trace   <--   E (module): {"body":{"module":{"id":"c388d6a3-6e57-48e1-a3c5-9b48a4fbbdad","name":"System.Linq.dll","path":"C:\\Program Files\\dotnet\\shared\\Microsoft.NETCore.App\\8.0.0\\System.Linq.dll","symbolStatus":"Symbols not found."},"reason":"new"},"event":"module","seq":"31","type":"event"}
LogMessage      Trace   <--   E (module): {"body":{"module":{"id":"3ccd1dee-7e8a-474f-a215-0d3e949b1d80","name":"NuGet.Configuration.dll","path":"C:\\Program Files\\dotnet\\sdk\\8.0.100\\NuGet.Configuration.dll","symbolStatus":"Symbols not found."},"reason":"new"},"event":"module","seq":"32","type":"event"}
LogMessage      Trace   <--   E (module): {"body":{"module":{"id":"5e6e7bb4-1590-45cd-98b7-5764415189f3","name":"NuGet.Protocol.dll","path":"C:\\Program Files\\dotnet\\sdk\\8.0.100\\NuGet.Protocol.dll","symbolStatus":"Symbols not found."},"reason":"new"},"event":"module","seq":"33","type":"event"}
LogMessage      Trace   <--   E (module): {"body":{"module":{"id":"3beafca1-4e25-4a4f-947b-1c268868a27d","name":"System.Private.Uri.dll","path":"C:\\Program Files\\dotnet\\shared\\Microsoft.NETCore.App\\8.0.0\\System.Private.Uri.dll","symbolStatus":"Symbols not found."},"reason":"new"},"event":"module","seq":"34","type":"event"}
LogMessage      Trace   <--   E (module): {"body":{"module":{"id":"c5110664-0ddc-45ed-ba19-e2f65604c60e","name":"NuGet.Common.dll","path":"C:\\Program Files\\dotnet\\sdk\\8.0.100\\NuGet.Common.dll","symbolStatus":"Symbols not found."},"reason":"new"},"event":"module","seq":"35","type":"event"}
LogMessage      Trace   <--   E (module): {"body":{"module":{"id":"a9d2026d-7941-46f2-a336-a9c4914a0a5e","name":"System.Memory.dll","path":"C:\\Program Files\\dotnet\\shared\\Microsoft.NETCore.App\\8.0.0\\System.Memory.dll","symbolStatus":"Symbols not found."},"reason":"new"},"event":"module","seq":"36","type":"event"}
LogMessage      Trace   <--   E (thread): {"body":{"reason":"started","threadId":8328},"event":"thread","seq":"37","type":"event"}
LogMessage      Trace   <--   E (thread): {"body":{"reason":"started","threadId":15852},"event":"thread","seq":"38","type":"event"}
LogMessage      Trace   <--   E (thread): {"body":{"reason":"started","threadId":16024},"event":"thread","seq":"39","type":"event"}
LogMessage      Trace   <--   E (module): {"body":{"module":{"id":"5f535f25-2bad-416a-acc7-4335fbdd5dd0","name":"Microsoft.ApplicationInsights.dll","path":"C:\\Program Files\\dotnet\\sdk\\8.0.100\\Microsoft.ApplicationInsights.dll","symbolStatus":"Symbols not found."},"reason":"new"},"event":"module","seq":"40","type":"event"}
LogMessage      Trace   <--   E (thread): {"body":{"reason":"started","threadId":4736},"event":"thread","seq":"41","type":"event"}
LogMessage      Trace   <--   E (thread): {"body":{"reason":"started","threadId":16036},"event":"thread","seq":"42","type":"event"}
LogMessage      Trace   <--   E (thread): {"body":{"reason":"started","threadId":8200},"event":"thread","seq":"43","type":"event"}
LogMessage      Trace   <--   E (thread): {"body":{"reason":"started","threadId":8152},"event":"thread","seq":"44","type":"event"}
LogMessage      Trace   <--   E (module): {"body":{"module":{"id":"59d07b62-71db-46dd-bf29-d2d5ca4c6709","name":"System.Security.Cryptography.dll","path":"C:\\Program Files\\dotnet\\shared\\Microsoft.NETCore.App\\8.0.0\\System.Security.Cryptography.dll","symbolStatus":"Symbols not found."},"reason":"new"},"event":"module","seq":"45","type":"event"}
LogMessage      Trace   <--   E (module): {"body":{"module":{"id":"ec172918-3b3f-4370-9ec5-ba84bc503623","name":"System.Diagnostics.DiagnosticSource.dll","path":"C:\\Program Files\\dotnet\\shared\\Microsoft.NETCore.App\\8.0.0\\System.Diagnostics.DiagnosticSource.dll","symbolStatus":"Symbols not found."},"reason":"new"},"event":"module","seq":"46","type":"event"}        
LogMessage      Trace   <--   E (module): {"body":{"module":{"id":"56237616-9f25-4bdd-b980-129850b7129a","name":"NuGet.Frameworks.dll","path":"C:\\Program Files\\dotnet\\sdk\\8.0.100\\NuGet.Frameworks.dll","symbolStatus":"Symbols not found."},"reason":"new"},"event":"module","seq":"47","type":"event"}
LogMessage      Trace   <--   E (module): {"body":{"module":{"id":"a07af72d-148a-4ed3-9ba7-bd1013d44fa3","name":"System.IO.MemoryMappedFiles.dll","path":"C:\\Program Files\\dotnet\\shared\\Microsoft.NETCore.App\\8.0.0\\System.IO.MemoryMappedFiles.dll","symbolStatus":"Symbols not found."},"reason":"new"},"event":"module","seq":"48","type":"event"}
LogMessage      Trace   <--   E (module): {"body":{"module":{"id":"463457b7-d2bd-44a3-805d-6a0d4b014332","name":"Microsoft.Build.dll","path":"C:\\Program Files\\dotnet\\sdk\\8.0.100\\Microsoft.Build.dll","symbolStatus":"Symbols not found."},"reason":"new"},"event":"module","seq":"49","type":"event"}
LogMessage      Trace   <--   E (module): {"body":{"module":{"id":"4dcdd8b0-0745-45a4-9a88-cafb1d50ec9d","name":"System.Net.Http.dll","path":"C:\\Program Files\\dotnet\\shared\\Microsoft.NETCore.App\\8.0.0\\System.Net.Http.dll","symbolStatus":"Symbols not found."},"reason":"new"},"event":"module","seq":"50","type":"event"}
LogMessage      Trace   <--   E (module): {"body":{"module":{"id":"56bf59e8-bb3f-4b94-ae2d-396772852374","name":"Microsoft.Build.Framework.dll","path":"C:\\Program Files\\dotnet\\sdk\\8.0.100\\Microsoft.Build.Framework.dll","symbolStatus":"Symbols not found."},"reason":"new"},"event":"module","seq":"51","type":"event"}
LogMessage      Trace   <--   E (module): {"body":{"module":{"id":"fba06c59-0803-4c20-86f5-3b0655467d70","name":"System.Net.Primitives.dll","path":"C:\\Program Files\\dotnet\\shared\\Microsoft.NETCore.App\\8.0.0\\System.Net.Primitives.dll","symbolStatus":"Symbols not found."},"reason":"new"},"event":"module","seq":"52","type":"event"}
LogMessage      Trace   <--   E (thread): {"body":{"reason":"started","threadId":3368},"event":"thread","seq":"53","type":"event"}
LogMessage      Trace   <--   E (module): {"body":{"module":{"id":"30eb8fa6-bd70-41e4-8cd9-a0532830b027","name":"System.Net.Security.dll","path":"C:\\Program Files\\dotnet\\shared\\Microsoft.NETCore.App\\8.0.0\\System.Net.Security.dll","symbolStatus":"Symbols not found."},"reason":"new"},"event":"module","seq":"54","type":"event"}
LogMessage      Trace   <--   E (module): {"body":{"module":{"id":"2bc5c355-a2b8-409c-9641-7ff9e8f710db","name":"System.Net.Requests.dll","path":"C:\\Program Files\\dotnet\\shared\\Microsoft.NETCore.App\\8.0.0\\System.Net.Requests.dll","symbolStatus":"Symbols not found."},"reason":"new"},"event":"module","seq":"55","type":"event"}
LogMessage      Trace   <--   E (module): {"body":{"module":{"id":"11377fe9-377a-4a35-a5a1-dc28895863ae","name":"System.Net.NetworkInformation.dll","path":"C:\\Program Files\\dotnet\\shared\\Microsoft.NETCore.App\\8.0.0\\System.Net.NetworkInformation.dll","symbolStatus":"Symbols not found."},"reason":"new"},"event":"module","seq":"56","type":"event"}
LogMessage      Trace   <--   E (thread): {"body":{"reason":"started","threadId":15972},"event":"thread","seq":"57","type":"event"}
LogMessage      Trace   <--   E (module): {"body":{"module":{"id":"db47c901-fad3-4b3f-a588-55f619a6afd6","name":"System.Collections.Concurrent.dll","path":"C:\\Program Files\\dotnet\\shared\\Microsoft.NETCore.App\\8.0.0\\System.Collections.Concurrent.dll","symbolStatus":"Symbols not found."},"reason":"new"},"event":"module","seq":"58","type":"event"}
LogMessage      Trace   <--   E (thread): {"body":{"reason":"started","threadId":4248},"event":"thread","seq":"59","type":"event"}
LogMessage      Trace   <--   E (module): {"body":{"module":{"id":"f6947404-e8f9-4d83-828e-5a6638b4518b","name":"System.Xml.XDocument.dll","path":"C:\\Program Files\\dotnet\\shared\\Microsoft.NETCore.App\\8.0.0\\System.Xml.XDocument.dll","symbolStatus":"Symbols not found."},"reason":"new"},"event":"module","seq":"60","type":"event"}
LogMessage      Trace   <--   E (module): {"body":{"module":{"id":"69da3213-cf69-4b8d-b57e-5db2e9a2b73c","name":"System.Private.Xml.Linq.dll","path":"C:\\Program Files\\dotnet\\shared\\Microsoft.NETCore.App\\8.0.0\\System.Private.Xml.Linq.dll","symbolStatus":"Symbols not found."},"reason":"new"},"event":"module","seq":"61","type":"event"}
LogMessage      Trace   <--   E (module): {"body":{"module":{"id":"e7274a35-fc9c-4399-a41a-53dc2b1f1c40","name":"System.Threading.Thread.dll","path":"C:\\Program Files\\dotnet\\shared\\MLogMessage      Trace   <--   E (module): {"body":{"module":{"id":"2108f805-6359-459d-b5f8-f00a416deb10","name":"System.Xml.ReaderWriter.dll","path":"C:\\Program Files\\dotnet\\shared\\Microsoft.NETCore.App\\8.0.0\\System.Xml.ReaderWriter.dll","symbolStatus":"Symbols not found."},"reason":"new"},"event":"module","seq":"63","type":"event"}
LogMessage      Trace   <--   E (module): {"body":{"module":{"id":"49884622-b381-4654-973b-63d64332cff9","name":"System.Runtime.Intrinsics.dll","path":"C:\\Program Files\\dotnet\\shared\\Microsoft.NETCore.App\\8.0.0\\System.Runtime.Intrinsics.dll","symbolStatus":"Symbols not found."},"reason":"new"},"event":"module","seq":"64","type":"event"}
LogMessage      Trace   <--   E (module): {"body":{"module":{"id":"39dc06cf-976d-45fb-84b8-19a41440074c","name":"System.Private.Xml.dll","path":"C:\\Program Files\\dotnet\\shared\\Microsoft.NETCore.App\\8.0.0\\System.Private.Xml.dll","symbolStatus":"Symbols not found."},"reason":"new"},"event":"module","seq":"65","type":"event"}
LogMessage      Trace   <--   E (thread): {"body":{"reason":"exited","threadId":4248},"event":"thread","seq":"66","type":"event"}
LogMessage      Trace   <--   E (thread): {"body":{"reason":"started","threadId":3032},"event":"thread","seq":"67","type":"event"}
LogMessage      Trace   <--   E (module): {"body":{"module":{"id":"81f13c77-6066-43b2-a15f-5473f935243a","name":"System.Text.RegularExpressions.dll","path":"C:\\Program Files\\dotnet\\shared\\Microsoft.NETCore.App\\8.0.0\\System.Text.RegularExpressions.dll","symbolStatus":"Symbols not found."},"reason":"new"},"event":"module","seq":"68","type":"event"}
LogMessage      Trace   <--   E (module): {"body":{"module":{"id":"9fc3c862-f78b-44ac-bf88-b60634337225","name":"Microsoft.Win32.Registry.dll","path":"C:\\Program Files\\dotnet\\shared\\Microsoft.NETCore.App\\8.0.0\\Microsoft.Win32.Registry.dll","symbolStatus":"Symbols not found."},"reason":"new"},"event":"module","seq":"69","type":"event"}
LogMessage      Trace   <--   E (module): {"body":{"module":{"id":"d951dd43-70e0-487c-9d2c-99367871f862","name":"System.Net.NameResolution.dll","path":"C:\\Program Files\\dotnet\\shared\\Microsoft.NETCore.App\\8.0.0\\System.Net.NameResolution.dll","symbolStatus":"Symbols not found."},"reason":"new"},"event":"module","seq":"70","type":"event"}
LogMessage      Trace   <--   E (output): {"seq":71, "event":"output","type":"event","body":{"category":"console","output":"Application Insights Telemetry: {\"name\":\"AppEvents\",\"time\":\"2024-01-09T10:06:37.8876240Z\",\"iKey\":\"74cc1c9e-3e6e-4d05-b3fc-dde9101d0254\",\"tags\":{\"ai.device.osVersion\":\"Windows\",\"ai.cloud.roleInstance\":\"FERDI-DESKTOP\",\"ai.session.id\":\"f5accd32-d9de-4bf0-aa7e-bfe2bc6e84b6\",\"ai.internal.sdkVersion\":\"dotnetc:2.21.0-429\"},\"data\":{\"baseType\":\"EventData\",\"baseData\":{\"ver\":2,\"name\":\"dotnet/cli/toplevelparser/command\",\"properties\":{\"Docker Container\":\"False\",\"Machine ID Old\":\"a7214164363d5018bb32ae91e91b0d77f8d5baf521db3bec8f4096e042db46e7\",\"OS Architecture\":\"X64\",\"Product Version\":\"8.0.100\",\"Output Redirected\":\"True\",\"Installation Type\":\"Client\",\"verb\":\"cbebeab6e4ac088fa5249254044dadf8a029b76e0355b3a559c3116ab39c9962\",\"Runtime Id\":\"win-x64\",\"event id\":\"64fb4299-a65b-4e9c-8a7c-c04bc92c72b9\",\"Continuous Integration\":\"False\",\"Product Type\":\"101\",\"Machine ID\":\"a7214164363d5018bb32ae91e91b0d77f8d5baf521db3bec8f4096e042db46e7\",\"Kernel Version\":\"Microsoft Windows 10.0.23481\",\"Current Path Hash\":\"4ab9b30c57572349bafc64c4351815f3109d54aba691362cbcb7804599fd68f5\",\"OS Platform\":\"Windows\",\"OS Version\":\"10.0.23481\"},\"measurements\":{\"Parse Time\":90.1553,\"Startup Time\":176.0969}}}}\r\n","source":"category"}}
LogMessage      Warning Stopping due to fatal error: JsonSerializationException: Error converting value "category" to type 'Microsoft.VisualStudio.Shared.VSCodeDebugProtocol.Messages.Source'. Path 'source'.
DispatcherError Error converting value "category" to type 'Microsoft.VisualStudio.Shared.VSCodeDebugProtocol.Messages.Source'. Path 'source'.
viewizard commented 10 months ago

But the protocol specifies that source must be of type Source. (and not string)

https://microsoft.github.io/debug-adapter-protocol/specification#arrow_left-output-event

category?: 'console' | 'important' | 'stdout' | 'stderr' | 'telemetry' | string;

as you could see, by protocol, category could be not specified, could be one of "fixed" array string (console, important, stdout, stderr or telemetry) or some custom string. I am not sure you could provide as part of text protocol message something not "string" but c# object (binary?) data...

viewizard commented 10 months ago

Ahh, I see you point.

viewizard commented 10 months ago
    /**
     * The source location where the output was produced.
     */
    source?: Source;

Probably, should be removed from event for now at all in order to prevent wrong parsing. Will also add this in feature request list.

GniLudio commented 10 months ago

Thanks.

How long is it likely to take for this to be resolved?

viewizard commented 10 months ago

Here is "fast fix", that will remove source:

diff --git a/src/protocols/vscodeprotocol.cpp b/src/protocols/vscodeprotocol.cpp
index 5e6d6d9..2b32e06 100644
--- a/src/protocols/vscodeprotocol.cpp
+++ b/src/protocols/vscodeprotocol.cpp
@@ -332,7 +332,7 @@ void VSCodeProtocol::EmitOutputEvent(OutputCategory category, string_view output
     const string_view& name = categories[category];

     EscapedString<JSON_escape_rules> escaped_text(output);
-    EscapedString<JSON_escape_rules> escaped_source(source);
+    EscapedString<JSON_escape_rules> escaped_source(string_view{});

     std::lock_guard<std::mutex> lock(m_outMutex);

will emit:

<- (E) {"seq":21, "event":"output","type":"event","body":{"category":"stdout","output":"Hello, World!\n"}}
Hello, World!

Upd patch for better fix

gbalykov commented 8 months ago

This should be fixed in latest release. Feel free to reopen if you see any more related issues.