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

Issue 731634 link

Starred by 2 users

Issue metadata

Status: Fixed
Owner:
Last visit > 30 days ago
Closed: Jul 2017
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: Mac
Pri: 3
Type: Bug



Sign in to add a comment

Devtools show wrong line number for errors on jsfiddle/codepen/stackoverflow/jsbin etc...

Project Member Reported by gman@chromium.org, Jun 9 2017

Issue description

Chrome Version: (61.0.3125.0 (Official Build) canary (64-bit)
OS: macOS 10.12.5 (I assume this is not related to OS)

What steps will reproduce the problem?
(1) Go to https://jsfiddle.net/greggman/ehtozkun/
(2) Open the devtools
(3) Click the error message

note: you may have to click 'run' a 2nd time to see the issue.


What is the expected result?

Devtools goes to and highlines the line with the error


What happens instead?

Devtools goes somewhere else.


Try the same in Safari/WebKit and it goes to the correct place. 


This has been a source of frustration for years. I wrote lots of snippets on stackoverflow and fiddles on JS fiddle and when there is an error it's often not easy to find and I end up having to add blank lines until I see the number not changes effectively bisecting my way to the line with the error.

Fixing this issue could releave so much pain
 

Comment 1 by gman@chromium.org, Jun 9 2017

screenshots chrome vs safari
chrome-highlight-incorrect.png
682 KB View Download
safari-highlight-correct.png
788 KB View Download
Owner: kozyatinskiy@chromium.org
Status: Assigned (was: Untriaged)
@kozy - I can sometimes repro this issue. It seems like some times it doesn't map it to the HTML file properly and sometimes maps it as a VM## anonymous script.
Status: Fixed (was: Assigned)
Thanks a lot for your report!
It looks like it was fixed by [1]. Please try to reproduce issue in Chrome Canary and if it's still reproducible please reopen this issue.

[1] https://chromium.googlesource.com/chromium/src/+/19a7ba263cc0eff46ac4752bbd04e12bb4f3dc31

Comment 4 by gman@chromium.org, Sep 14 2017

It appears to be fixed :D   I can repo in stable but not canary 63.0.3215.0

Sign in to add a comment