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

Issue 611081 link

Starred by 2 users

Issue metadata

Status: WontFix
Owner:
Last visit > 30 days ago
Closed: Dec 2016
Components:
EstimatedDays: ----
NextAction: ----
OS: Windows
Pri: 2
Type: Bug



Sign in to add a comment

breakpoints and call stacks not using source map

Reported by ghost...@gmail.com, May 11 2016

Issue description

UserAgent: Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/50.0.2661.94 Safari/537.36

Steps to reproduce the problem:
1. Go to a web page that uses a source map
2. Open dev tools
3. Cause an exception

What is the expected behavior?
Dev tools shows the execution point in the original js file and shows the original function names in the call stack

What went wrong?
Dev tools shows the execution point in the obfuscated js file and obfuscated function names in the call stack

Did this work before? Yes I don't remember

Chrome version: 50.0.2661.94  Channel: stable
OS Version: 6.1 (Windows 7, Windows Server 2008 R2)
Flash Version: Shockwave Flash 21.0 r0

If you set a breakpoint in the original js files and reload the page it breaks in the original js instead
 

Comment 1 by caseq@chromium.org, May 13 2016

Labels: Needs-Feedback
This is supposed to work -- it looks like for whatever reasons, your source maps were not hooked up properly. Do you see any errors on the console?

Comment 2 by ghost...@gmail.com, May 13 2016

No there are no errors in the console.

The minified js file has //# sourceMappingURL=source.map at the end and source.map has the correct /directory/filename.js paths in it.

It's detecting and understanding the source map correctly because the un-minified directories and files appear in the source tree (and they're orange instead if blue) but both the call stack and breakpoints use the minified js instead of the un-minified ones.
Project Member

Comment 3 by sheriffbot@chromium.org, May 14 2016

Labels: -Needs-Feedback Needs-Review
Owner: caseq@chromium.org
Thank you for providing more feedback. Adding requester "caseq@chromium.org" for another review and adding "Needs-Review" label for tracking.

For more details visit https://www.chromium.org/issue-tracking/autotriage - Your friendly Sheriffbot

Comment 4 by caseq@chromium.org, Jul 22 2016

Components: -Platform>DevTools Platform>DevTools>JavaScript
Owner: kozyatinskiy@chromium.org
Status: Assigned (was: Unconfirmed)
Could you please confirm that this issue is still reproducible on last stable chrome and provide repro page?
Status: WontFix (was: Assigned)
Feel free to reopen if it's still a problem.

Comment 7 by ghost...@gmail.com, Mar 23 2017

Yes it's still a problem in the latest dev (Version 59.0.3047.4 (Official Build) dev (64-bit)).

You can see from the attached picture that it says "Source Map detected", the folders from the source map are being displayed in the tree, however the minified code is shown
Clipboard01.png
253 KB View Download

Sign in to add a comment