-
Notifications
You must be signed in to change notification settings - Fork 34.3k
Closed
Labels
debugDebug viewlet, configurations, breakpoints, adapter issuesDebug viewlet, configurations, breakpoints, adapter issuesfeature-requestRequest for new features or functionalityRequest for new features or functionalityon-testplan
Milestone
Description
Sourcemaps can represent variable name mappings, like when they're changed in minified code, or TypeScript's this => _this
. Chrome DevTools shows the original variable names in their variables sidebar: https://bugs.chromium.org/p/chromium/issues/detail?id=327092
One problem is that if you don't know the original names, you can't inspect them in the console or with watches. But I think it would still make debugging easier to have them just in the variables pane.
We could go one step further by showing both names, in the variable name space, just like myArray (t)
. And another step by adding this to the protocol so that the context menu "Add to Watch" would work. I don't know if it's a useful concept outside of JS though.
bpasero, joaomoreno, normalser, xinix00, DrYSG and 15 more
Metadata
Metadata
Assignees
Labels
debugDebug viewlet, configurations, breakpoints, adapter issuesDebug viewlet, configurations, breakpoints, adapter issuesfeature-requestRequest for new features or functionalityRequest for new features or functionalityon-testplan