diff --git a/packages/plugin-ext/src/plugin/node/debug/plugin-debug-adapter-session.ts b/packages/plugin-ext/src/plugin/node/debug/plugin-debug-adapter-session.ts index 3e0eb502f3e38..7d7ee3c9f64fe 100644 --- a/packages/plugin-ext/src/plugin/node/debug/plugin-debug-adapter-session.ts +++ b/packages/plugin-ext/src/plugin/node/debug/plugin-debug-adapter-session.ts @@ -71,14 +71,14 @@ export class PluginDebugAdapterSession extends DebugAdapterSessionImpl implement super.send(message); } finally { if (this.tracker.onDidSendMessage) { - this.tracker.onDidSendMessage(message); + this.tracker.onDidSendMessage(JSON.parse(message)); } } } protected write(message: string): void { if (this.tracker.onWillReceiveMessage) { - this.tracker.onWillReceiveMessage(message); + this.tracker.onWillReceiveMessage(JSON.parse(message)); } super.write(message); }