From d9900e2f39977f627be6c43d9d6a1c2d854c8fe2 Mon Sep 17 00:00:00 2001 From: Adam Driscoll Date: Thu, 12 Oct 2023 08:41:59 -0500 Subject: [PATCH] Debugger. --- src/commands/debugger.ts | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/commands/debugger.ts b/src/commands/debugger.ts index 7fefde0..1383896 100644 --- a/src/commands/debugger.ts +++ b/src/commands/debugger.ts @@ -40,8 +40,9 @@ export class UniversalDebugAdapter implements vscode.DebugAdapter { .configureLogging(LogLevel.Information) .build(); - this.hubConnection.on("message", (message) => { - const protocolMessage = JSON.parse(message) as DebugProtocol.ProtocolMessage; + this.hubConnection.on("message", (message: string) => { + var json = message.split('\r\n')[2]; + const protocolMessage = JSON.parse(json) as DebugProtocol.ProtocolMessage; this.handleMessage(protocolMessage); });