Skip to content

(Question) Does vscode-js-debug support private class fields? #892

@leonardoraele

Description

@leonardoraele

Private class fields doesn't appear in the "Variables" sidebar. I noticed v8 does have a method for reading private properties of objects, but it's in experimental stage: https://chromedevtools.github.io/devtools-protocol/v8/Runtime/#method-getProperties

Do I have to enable use of experimental api or something like this to see private fields; or is it just not implemented yet?

Example:

class Subject
{
	publicValue = 'not so secret';
	#secretValue = 'my secret';
}

const subject = new Subject();

example

Metadata

Metadata

Assignees

Labels

feature-requestRequest for new features or functionalityverification-neededVerification of issue is requestedverifiedVerification succeeded

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions