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

Issue 853505 link

Starred by 1 user

Issue metadata

Status: Duplicate
Owner:
Last visit > 30 days ago
Closed: Jun 2018
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: Linux , Windows , Mac
Pri: 1
Type: Bug-Regression



Sign in to add a comment

BreakpointManager#possibleBreakpoints fails when last column has no segment

Reported by alec.sta...@gmail.com, Jun 16 2018

Issue description

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

Steps to reproduce the problem:
1. open the attached "index.html"
2. try setting a breakpoint on line 4 of "main.js"

What is the expected behavior?
The `possibleBreakpoints` method should find the first and last segments for the clicked line. An exact match should not be required.

What went wrong?
The BreakpointManager's `possibleBreakpoints` method returns an empty array because no segment exists with a generated column equal to the column line 4 ends at.

Did this work before? N/A 

Chrome version: 67.0.3396.87  Channel: stable
OS Version: OS X 10.13.0
Flash Version: 

You'll need to fix how `startLocation` and `endLocation` are determined in the `possibleBreakpoints` method.

Find all mappings within `textRange`. Pass the first and last `Location` objects to `debuggerModel.getPossibleBreakpoints`. Only return early if no mappings exist within the `textRange`.
 
example.zip
1.4 KB Download
Labels: Needs-Triage-M67
Labels: Needs-Feedback Triaged-ET
Tested the issue on chrome reported version# 67.0.3396.87 using Mac 10.12.6 with steps mentioned below:
1) Launched chrome reported version, unzipped the file and opened index.html file 
2) Opened Devtools> Sources> 'main.js' and tried to se the breakpoint at line 4, but not able to se breakpoint at line 4
Observations: Also tested the issue on latest chrome# 69.0.3464.0, followed above mentioned steps and able to set breakpoint at line 4

@Reporter: Please find the attached screencast screencast for your reference and let us know if you are also pointing the same issue which i have captured in the screencast, provide your feedback on it which help in further triaging the issue.

Thanks!
853505.mp4
1.9 MB View Download
Awesome! Thanks for the update. :)
Project Member

Comment 4 by sheriffbot@chromium.org, Jun 19 2018

Cc: viswa.karala@chromium.org
Labels: -Needs-Feedback
Thank you for providing more feedback. Adding the requester to the cc list.

For more details visit https://www.chromium.org/issue-tracking/autotriage - Your friendly Sheriffbot
Cc: dgozman@chromium.org
Labels: -Type-Bug -Pri-2 hasbisect-per-revision ReleaseBlock-Stable M-67 Target-67 FoundIn-67 OS-Linux OS-Windows Pri-1 Type-Bug-Regression
Owner: kozyatinskiy@chromium.org
Status: Assigned (was: Unconfirmed)
Able to reproduce the issue on reported version 67.0.3396.87 and the same is not seen on latest canary 69.0.3468.0 and Beta 68.0.3440.33 using Windows 10, Ubuntu 14.04 & Mac 10.12.6, hence providing reverse bisect info

Reverse Bisect Info:
================
Last Bad build: 68.0.3417.0
First Good build: 68.0.3418.0

You are probably looking for a change made after 555625 (known good), but no later than 555626 (first known bad).
https://chromium.googlesource.com/chromium/src/+log/9cf9c0c56edce812ea5cf934aff4bbc7d571c9b6..21d0de4658af012ce154176229d8a23609bb1d02
Reviewed-on: https://chromium-review.googlesource.com/1028510

@Alexey Kozyatinskiy: Please confirm the issue and help in re-assigning if it is not related to your change, please help in merging it to M-67 if applicable
Adding ReleaseBlock-Stable for M-67, feel free to remove it if not applicable.

Note: CC'ing the reviewer(Dmitry Gozman) as the author of this issue(Alexey Kozyatinskiy) last visit is 17 days ago.

Thanks!
Labels: -M-67 -Target-67 M-68 Target-68
Not a blocker for 67.
Probably a dupe of issue 836440? kozy@ to confirm.

Comment 8 by kozy@chromium.org, Jun 22 2018

Mergedinto: 836440
Status: Duplicate (was: Assigned)
Yes, I believe it is dupe. I can verify that it works as expected in dev and 
latest Canary.

Sign in to add a comment