Skip to content

Commit 068cbf3

Browse files
authored
Fixing an issue in debug output prompts to not show up as '[object Object]' (#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]`.
1 parent c89c53d commit 068cbf3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/vs/workbench/contrib/debug/browser/debugSession.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -1345,7 +1345,7 @@ export class DebugSession implements IDebugSession {
13451345
appendToRepl(data: INewReplElementData, isImportant?: boolean): void {
13461346
this.repl.appendToRepl(this, data);
13471347
if (isImportant) {
1348-
this.notificationService.notify({ message: data.toString(), severity: data.sev, source: this.name });
1348+
this.notificationService.notify({ message: data.output.toString(), severity: data.sev, source: this.name });
13491349
}
13501350
}
13511351
}

0 commit comments

Comments
 (0)