A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://github.com/microsoft/vscode-js-debug/issues/2201 below:

Variables in bundled code with source maps aren't renamed properly · Issue #2201 · microsoft/vscode-js-debug · GitHub

Describe the bug
A clear and concise description of what the bug is.

On and after 7a11f7c, names from larger source maps are not parsed most of the time1

To Reproduce
Steps to reproduce the behavior:

Using the reproduction at https://github.com/sadan4/map-names-repro

  1. Use version b389427
  2. Set a breakpoint in index.ts
  3. Run the code
  4. Notice that names are mapped
Image

  1. Use any version after that (I tested on 7a11f7c, and latest main 1942fd6)
  2. Set a breakpoint in index.ts
  3. Run the code
  4. Notice that names aren't mapped
Image

Log File

broken log

working log

VS Code Version: Version: 1.99.0

Additional context
Add any other context about the problem here.

This only seems to be an issue with larger bundles. If I remove the require("typescript") from the reproduction (only added to increase the bundle size) the variables are renamed properly

  1. On the code I encountered this issue in, a few variables would have their names mapped randomly, but I rarely encountered this and could not notice any patterns.


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4