New issue
Advanced search Search tips
Note: Color blocks (like or ) mean that a user may not be available. Tooltip shows the reason.

Issue 758229 link

Starred by 2 users

Issue metadata

Status: Duplicate
Merged: issue 327092
Owner:
Closed: Sep 26
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: Mac
Pri: 2
Type: Bug



Sign in to add a comment

Cant check variable value when minified, and project has map file

Reported by stu...@gmail.com, Aug 23 2017

Issue description

UserAgent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_12_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/60.0.3112.101 Safari/537.36

Steps to reproduce the problem:
1. have a minified file with map file attached (webpack generated is ok)
2. run the code and have a breakpoint at some variable value
3. hover the mouse over the variable to see the value or just write the variable name in the console to see its value

What is the expected behavior?
should show the value on hover with mouse over the variable

What went wrong?
It does not show the variable value, because the original variable name (minified) is different than the non minified one.

Did this work before? No 

Chrome version: 60.0.3112.101  Channel: stable
OS Version: OS X 10.12.6
Flash Version:
 

Comment 1 by stu...@gmail.com, Aug 23 2017

And if there is no way of displaying the value easily, we should at least be able to see all the variables in the current scope on the side pane.
Cc: krajshree@chromium.org
Labels: Needs-Triage-M60 Needs-Feedback
stuk88@ - Thanks for filing the issue...!!

Could you please provide a sample test file to test the issue from TE-end.
This will help us in triaging the issue further.

Thanks...!!
Owner: kozyatinskiy@chromium.org
Status: Assigned (was: Unconfirmed)

Comment 4 by stu...@gmail.com, Aug 29 2017

Clone this project:
https://github.com/stuk88/ReactSnake

then:
npm install
npm start

then make a break point in the game.js file in getRandomCleanPixel() or moveSnake() function (based on the sourcemap)
hover the x variable -> you can see the value is not displayed because there is no variable named x after minification

Comment 5 by stu...@gmail.com, Aug 29 2017

dont forget to run the game by clicking "Start Game" button
Owner: kozy@chromium.org
Mergedinto: 327092
Status: Duplicate (was: Assigned)
I checked it in latest Google Chrome Canary and it works. We show value on hover. I will merge this bug into one that about better symbol resolving with source map.

Sign in to add a comment