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

Unobfuscate variable names from source maps in vsc debugger. #116458

Closed
bonjourjoel opened this issue Feb 11, 2021 · 2 comments
Closed

Unobfuscate variable names from source maps in vsc debugger. #116458

bonjourjoel opened this issue Feb 11, 2021 · 2 comments
Labels
*duplicate Issue identified as a duplicate of another issue(s)

Comments

@bonjourjoel
Copy link

Hi,

I have successfully used webpack & its terser plugin to compile my typescript code into javascript code while mangling (obfuscating) variable names. Now i want to use visual studio code debugger to debug the packed & mangled javascript. Visual studio code finds the source maps, and it breaks at the first breakpoint as expected.

So my problem is this:
vsc-webpack

  1. The debugger is stopping on the breakpoint -> GOOD
  2. The call stack is unobfuscated and I can see the original dir and filenames -> GOOD
  3. The variable names are still mangled. I can't see the original variable names on the debugger's variables panel. -> BAD

This is my request! Thanks for reading.

@IllusionMH
Copy link
Contributor

/duplicate of #12066

@github-actions github-actions bot locked and limited conversation to collaborators Mar 28, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
*duplicate Issue identified as a duplicate of another issue(s)
Projects
None yet
Development

No branches or pull requests

3 participants
@IllusionMH @bonjourjoel and others