Skip to content

Add support for customDescriptionGenerators (for compiler debugging) #40308

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

Merged
merged 1 commit into from
Sep 3, 2020

Conversation

rbuckton
Copy link
Member

This adds a custom watch/locals description generator for use when debugging the compiler using the new "customDescriptionGenerators" feature recently added to the new preview js debugger for VS Code.

This adds custom Watch window descriptions for the following kinds of objects in the compiler:

  • Symbol
  • Type
  • Node
  • NodeArray
  • FlowNode

Examples:

image

image

Instructions for enabling this when debugging can be found in .vscode/launch.template.json.

@typescript-bot typescript-bot added Author: Team For Uncommitted Bug PR for untriaged, rejected, closed or missing bug labels Aug 28, 2020
]
],

// NOTE: To use this, you must switch the "type" above to "pwa-node". You may also need to follow the instructions
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I believe this comment will be obsolete in the next VS Code release.

@rbuckton rbuckton merged commit d896353 into master Sep 3, 2020
@rbuckton rbuckton deleted the customDescriptionGenerator branch September 3, 2020 03:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Author: Team For Uncommitted Bug PR for untriaged, rejected, closed or missing bug
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants