Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(363)

Issue 2484283004: [DevTools] added BreakpointManager.possibleBreakpoints method (Closed)

Created:
4 years, 1 month ago by kozy
Modified:
4 years, 1 month ago
Reviewers:
dgozman, lushnikov
CC:
chromium-reviews, caseq+blink_chromium.org, lushnikov+blink_chromium.org, pfeldman+blink_chromium.org, apavlov+blink_chromium.org, devtools-reviews_chromium.org, blink-reviews, pfeldman, kozyatinskiy+blink_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

[DevTools] added BreakpointManager.possibleBreakpoints method This method takes UISourceCode and TextRange and returns UILocations of possible breakpoints in this range. It uses first target with JS capability that was able to resolve startUILocation and endUILocation to call getPossibleBreakpoints on. JavaScriptSourceFrame uses this method to get more accurate breakpoint location. BUG=chromium:566801 R=lushnikov@chromium.org,dgozman@chromium.org Committed: https://crrev.com/b363145ee1c6ca60e5dfa882d78b3430e3d680ca Cr-Commit-Position: refs/heads/master@{#431350}

Patch Set 1 #

Patch Set 2 : adding usage of possibleBreakpoints #

Patch Set 3 : added a test #

Patch Set 4 : rebased tests #

Total comments: 24

Patch Set 5 : addressed comments #

Patch Set 6 : possible-breakpoints #

Total comments: 4

Patch Set 7 : addressed comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+307 lines, -15 lines) Patch
A third_party/WebKit/LayoutTests/inspector/sources/debugger-breakpoints/possible-breakpoints.html View 1 1 chunk +52 lines, -0 lines 0 comments Download
A third_party/WebKit/LayoutTests/inspector/sources/debugger-breakpoints/possible-breakpoints-expected.txt View 1 2 3 1 chunk +16 lines, -0 lines 0 comments Download
A third_party/WebKit/LayoutTests/inspector/sources/debugger-breakpoints/use-possible-breakpoints-to-resolve-breakpoint.html View 1 2 3 4 1 chunk +66 lines, -0 lines 0 comments Download
A third_party/WebKit/LayoutTests/inspector/sources/debugger-breakpoints/use-possible-breakpoints-to-resolve-breakpoint-expected.txt View 1 2 3 4 1 chunk +10 lines, -0 lines 0 comments Download
M third_party/WebKit/LayoutTests/inspector/sources/debugger-ui/click-gutter-breakpoint.html View 1 2 3 4 5 2 chunks +14 lines, -7 lines 0 comments Download
M third_party/WebKit/Source/devtools/front_end/bindings/BreakpointManager.js View 1 2 3 4 1 chunk +44 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/devtools/front_end/sdk/DebuggerModel.js View 1 2 3 4 1 chunk +25 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/devtools/front_end/sources/JavaScriptSourceFrame.js View 1 2 3 4 5 6 4 chunks +59 lines, -8 lines 0 comments Download
M third_party/WebKit/Source/devtools/front_end/workspace/UISourceCode.js View 1 2 3 4 1 chunk +21 lines, -0 lines 0 comments Download

Messages

Total messages: 21 (12 generated)
kozy
Andrey and Dmitry, please take a look!
4 years, 1 month ago (2016-11-09 02:28:38 UTC) #1
dgozman
The patch is doing more than description claims :-) https://codereview.chromium.org/2484283004/diff/60001/third_party/WebKit/LayoutTests/inspector/sources/debugger-breakpoints/use-possible-breakpoints-to-resolve-breakpoint.html File third_party/WebKit/LayoutTests/inspector/sources/debugger-breakpoints/use-possible-breakpoints-to-resolve-breakpoint.html (right): https://codereview.chromium.org/2484283004/diff/60001/third_party/WebKit/LayoutTests/inspector/sources/debugger-breakpoints/use-possible-breakpoints-to-resolve-breakpoint.html#newcode64 third_party/WebKit/LayoutTests/inspector/sources/debugger-breakpoints/use-possible-breakpoints-to-resolve-breakpoint.html:64: ...
4 years, 1 month ago (2016-11-09 20:44:03 UTC) #4
kozy
All done, please take a look! https://codereview.chromium.org/2484283004/diff/60001/third_party/WebKit/LayoutTests/inspector/sources/debugger-breakpoints/use-possible-breakpoints-to-resolve-breakpoint.html File third_party/WebKit/LayoutTests/inspector/sources/debugger-breakpoints/use-possible-breakpoints-to-resolve-breakpoint.html (right): https://codereview.chromium.org/2484283004/diff/60001/third_party/WebKit/LayoutTests/inspector/sources/debugger-breakpoints/use-possible-breakpoints-to-resolve-breakpoint.html#newcode64 third_party/WebKit/LayoutTests/inspector/sources/debugger-breakpoints/use-possible-breakpoints-to-resolve-breakpoint.html:64: <p></p> On 2016/11/09 ...
4 years, 1 month ago (2016-11-10 03:17:37 UTC) #5
dgozman
Overall looks good, but let's take a look at the usage before committing. https://codereview.chromium.org/2484283004/diff/100001/third_party/WebKit/Source/devtools/front_end/sources/JavaScriptSourceFrame.js File ...
4 years, 1 month ago (2016-11-10 19:06:52 UTC) #12
dgozman
lgtm
4 years, 1 month ago (2016-11-10 19:11:48 UTC) #13
kozy
all done, thanks! https://codereview.chromium.org/2484283004/diff/100001/third_party/WebKit/Source/devtools/front_end/sources/JavaScriptSourceFrame.js File third_party/WebKit/Source/devtools/front_end/sources/JavaScriptSourceFrame.js (right): https://codereview.chromium.org/2484283004/diff/100001/third_party/WebKit/Source/devtools/front_end/sources/JavaScriptSourceFrame.js#newcode1061 third_party/WebKit/Source/devtools/front_end/sources/JavaScriptSourceFrame.js:1061: if (locations) On 2016/11/10 19:06:52, dgozman ...
4 years, 1 month ago (2016-11-10 19:49:53 UTC) #14
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2484283004/120001
4 years, 1 month ago (2016-11-10 19:50:26 UTC) #17
commit-bot: I haz the power
Committed patchset #7 (id:120001)
4 years, 1 month ago (2016-11-10 21:09:23 UTC) #19
commit-bot: I haz the power
4 years, 1 month ago (2016-11-10 21:23:33 UTC) #21
Message was sent while issue was closed.
Patchset 7 (id:??) landed as
https://crrev.com/b363145ee1c6ca60e5dfa882d78b3430e3d680ca
Cr-Commit-Position: refs/heads/master@{#431350}

Powered by Google App Engine
This is Rietveld 408576698