Skip to content

Commit

Permalink
Fixing an issue in debug output prompts to not show up as '[object Ob…
Browse files Browse the repository at this point in the history
…ject]' (#181964)

When this method is called from debugSession.ts:1154 the value passed to `data` is an object, the actual output is in the `output` field on the object so the `.toString()` call results in a message like `[object Object]`.
  • Loading branch information
ashgti committed May 11, 2023
1 parent c89c53d commit 068cbf3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/vs/workbench/contrib/debug/browser/debugSession.ts
Expand Up @@ -1345,7 +1345,7 @@ export class DebugSession implements IDebugSession {
appendToRepl(data: INewReplElementData, isImportant?: boolean): void {
this.repl.appendToRepl(this, data);
if (isImportant) {
this.notificationService.notify({ message: data.toString(), severity: data.sev, source: this.name });
this.notificationService.notify({ message: data.output.toString(), severity: data.sev, source: this.name });
}
}
}

0 comments on commit 068cbf3

Please sign in to comment.