Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

VSCode debugger's new Symbol.for("debug.description") property for debug descriptions #261

Open
justingrant opened this issue Aug 5, 2023 · 2 comments

Comments

@justingrant
Copy link
Contributor

VSCode's debugger now has a new way of exposing the string representation of an object inside a debugger, using a new symbol property. I assume we should support this? See microsoft/vscode-js-debug#1775.

@12wrigja
Copy link
Contributor

12wrigja commented Aug 7, 2023

Yep - probably the exact same way we support the existing NodeJS symbol:

Object.defineProperty(Class.prototype, Symbol.for('nodejs.util.inspect.custom'), {

@12wrigja
Copy link
Contributor

12wrigja commented Aug 7, 2023

Though, our current bundles don't include any of this code by default, so I'm wondering how much value all these debug-only things are bringing.

Are there other packages that have a sensible "for debugging" different build / configuration that we could borrow from?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants