Skip to content

toString and customDescriptionGenerator not work in watch panel in nightly build. #2252

@pilaoda

Description

@pilaoda

Describe the bug

Image Image

To Reproduce
Debug this code:

class Password {
    constructor(value) {
        this.value = value;
    }
    toString() {
        return 'xxxxxxxx';
    }
}

const password = new Password('r0sebud');
console.log(password);

VS Code Version: Version: 1.101.0 (system setup)
Commit: dfaf44141ea9deb3b4096f7cd6d24e00c147a4b1
Date: 2025-06-11T15:00:50.123Z
Electron: 35.5.1
ElectronBuildId: 11727614
Chromium: 134.0.6998.205
Node.js: 22.15.1
V8: 13.4.114.21-electron.0
OS: Windows_NT x64 10.0.26100

Additional context
It introduced in #2217
https://github.com/microsoft/vscode-js-debug/blob/113fa913357d5380e40911c8e964831a5dce29f0/src/adapter/templates/index.ts#L115C72-L115C75

The ; at the end of the function shoule be removed.

Metadata

Metadata

Assignees

Labels

bugIssue identified by VS Code Team member as probable bug

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions