Skip to content

Commit

Permalink
Debugger.
Browse files Browse the repository at this point in the history
  • Loading branch information
adamdriscoll committed Oct 12, 2023
1 parent a955788 commit d9900e2
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/commands/debugger.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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);
});

Expand Down

0 comments on commit d9900e2

Please sign in to comment.