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

Issue 2505413002: [DevTools] Prepare JavaScriptSourceFrame for multiple breakpoints per line (Closed)

Created:
4 years, 1 month ago by kozy
Modified:
4 years 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] Prepare JavaScriptSourceFrame for multiple breakpoints per line - used textEditorPositionHandle for breakpoint location tracking during editing, - prepared context menu and line decorations for multiple breakpoints in one line. BUG=chromium:566801 R=lushnikov@chromium.org,dgozman@chromium.org Committed: https://crrev.com/979c4d82518fda1ea8182a7368da152b6bd38088 Cr-Commit-Position: refs/heads/master@{#433655}

Patch Set 1 #

Total comments: 10

Patch Set 2 : use codemirror textEditorPositionHandle to track breakpoints #

Patch Set 3 : clear decoration on restore #

Patch Set 4 : removed checking decorations from live-edit-breakpoints, will be replaced with new test #

Patch Set 5 : .. #

Patch Set 6 : added test for decorations, edit one is coming #

Total comments: 14

Patch Set 7 : addressed all comments #

Total comments: 4

Patch Set 8 : addressed comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+362 lines, -280 lines) Patch
M third_party/WebKit/LayoutTests/http/tests/inspector/debugger-test.js View 1 2 3 4 5 6 2 chunks +41 lines, -0 lines 0 comments Download
M third_party/WebKit/LayoutTests/inspector/sources/debugger-breakpoints/breakpoint-manager.html View 1 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/LayoutTests/inspector/sources/debugger-ui/source-frame.html View 1 2 3 4 5 6 1 chunk +0 lines, -18 lines 0 comments Download
M third_party/WebKit/LayoutTests/inspector/sources/debugger-ui/source-frame-expected.txt View 1 2 3 4 5 6 1 chunk +0 lines, -4 lines 0 comments Download
M third_party/WebKit/LayoutTests/inspector/sources/debugger/live-edit.html View 1 2 3 4 5 6 2 chunks +2 lines, -6 lines 0 comments Download
M third_party/WebKit/LayoutTests/inspector/sources/debugger/live-edit-breakpoints.html View 1 2 3 4 4 chunks +2 lines, -30 lines 0 comments Download
M third_party/WebKit/LayoutTests/inspector/sources/debugger/live-edit-breakpoints-expected.txt View 1 2 3 13 chunks +0 lines, -52 lines 0 comments Download
A third_party/WebKit/LayoutTests/inspector/sources/debugger/source-frame-breakpoint-decorations.html View 1 2 3 4 5 6 1 chunk +126 lines, -0 lines 0 comments Download
A third_party/WebKit/LayoutTests/inspector/sources/debugger/source-frame-breakpoint-decorations-expected.txt View 1 2 3 4 5 6 1 chunk +28 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/devtools/front_end/bindings/BreakpointManager.js View 1 2 chunks +3 lines, -3 lines 0 comments Download
M third_party/WebKit/Source/devtools/front_end/source_frame/SourcesTextEditor.js View 1 2 3 4 5 6 7 1 chunk +0 lines, -32 lines 0 comments Download
M third_party/WebKit/Source/devtools/front_end/sources/JavaScriptSourceFrame.js View 1 2 3 4 5 6 7 13 chunks +159 lines, -96 lines 0 comments Download
M third_party/WebKit/Source/devtools/front_end/text_editor/CodeMirrorTextEditor.js View 1 2 3 4 5 6 7 1 chunk +0 lines, -38 lines 0 comments Download

Messages

Total messages: 19 (8 generated)
kozy
Andrey, please take a look. I extracted from https://codereview.chromium.org/2500493003 part which prepares JavaScriptSourceFrame for new ...
4 years, 1 month ago (2016-11-17 18:23:56 UTC) #1
lushnikov
https://codereview.chromium.org/2505413002/diff/1/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/2505413002/diff/1/third_party/WebKit/Source/devtools/front_end/sources/JavaScriptSourceFrame.js#newcode372 third_party/WebKit/Source/devtools/front_end/sources/JavaScriptSourceFrame.js:372: for (var breakpointLocation of this._breakpointManager.breakpointLocationsForUISourceCode(this.uiSourceCode())) i don't think it ...
4 years, 1 month ago (2016-11-17 21:33:18 UTC) #3
lushnikov
https://codereview.chromium.org/2505413002/diff/1/third_party/WebKit/Source/devtools/front_end/sources/JavaScriptSourceFrame.js File third_party/WebKit/Source/devtools/front_end/sources/JavaScriptSourceFrame.js (left): https://codereview.chromium.org/2505413002/diff/1/third_party/WebKit/Source/devtools/front_end/sources/JavaScriptSourceFrame.js#oldcode408 third_party/WebKit/Source/devtools/front_end/sources/JavaScriptSourceFrame.js:408: for (var lineNumber = 0; lineNumber < this._textEditor.linesCount; ++lineNumber) ...
4 years, 1 month ago (2016-11-17 22:14:53 UTC) #4
kozy
I used textEditorPositionHandle to track breakpoint locations during editing and addressed all comments. Please take ...
4 years, 1 month ago (2016-11-18 16:32:40 UTC) #7
lushnikov
https://codereview.chromium.org/2505413002/diff/120001/third_party/WebKit/LayoutTests/http/tests/inspector/debugger-test.js File third_party/WebKit/LayoutTests/http/tests/inspector/debugger-test.js (right): https://codereview.chromium.org/2505413002/diff/120001/third_party/WebKit/LayoutTests/http/tests/inspector/debugger-test.js#newcode630 third_party/WebKit/LayoutTests/http/tests/inspector/debugger-test.js:630: InspectorTest.waitJavaScriptSourceFrameBreakpoints = function(sourceFrame) let's wait for amount of resolved ...
4 years, 1 month ago (2016-11-18 21:44:46 UTC) #8
kozy
all done, please take a look! https://codereview.chromium.org/2505413002/diff/120001/third_party/WebKit/LayoutTests/http/tests/inspector/debugger-test.js File third_party/WebKit/LayoutTests/http/tests/inspector/debugger-test.js (right): https://codereview.chromium.org/2505413002/diff/120001/third_party/WebKit/LayoutTests/http/tests/inspector/debugger-test.js#newcode630 third_party/WebKit/LayoutTests/http/tests/inspector/debugger-test.js:630: InspectorTest.waitJavaScriptSourceFrameBreakpoints = function(sourceFrame) ...
4 years, 1 month ago (2016-11-19 00:46:09 UTC) #9
lushnikov
lgtm https://codereview.chromium.org/2505413002/diff/140001/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/2505413002/diff/140001/third_party/WebKit/Source/devtools/front_end/sources/JavaScriptSourceFrame.js#newcode810 third_party/WebKit/Source/devtools/front_end/sources/JavaScriptSourceFrame.js:810: this._scheduledBreakpointDecorationUpdates = new Set(); nit: jsdoc https://codereview.chromium.org/2505413002/diff/140001/third_party/WebKit/Source/devtools/front_end/sources/JavaScriptSourceFrame.js#newcode814 third_party/WebKit/Source/devtools/front_end/sources/JavaScriptSourceFrame.js:814: ...
4 years ago (2016-11-21 19:17:23 UTC) #10
kozy
all done! thanks a lot! https://codereview.chromium.org/2505413002/diff/140001/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/2505413002/diff/140001/third_party/WebKit/Source/devtools/front_end/sources/JavaScriptSourceFrame.js#newcode810 third_party/WebKit/Source/devtools/front_end/sources/JavaScriptSourceFrame.js:810: this._scheduledBreakpointDecorationUpdates = new Set(); ...
4 years ago (2016-11-21 19:40:10 UTC) #11
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/2505413002/160001
4 years ago (2016-11-21 19:40:57 UTC) #14
commit-bot: I haz the power
Committed patchset #8 (id:160001)
4 years ago (2016-11-21 21:21:19 UTC) #17
commit-bot: I haz the power
4 years ago (2016-11-21 21:27:53 UTC) #19
Message was sent while issue was closed.
Patchset 8 (id:??) landed as
https://crrev.com/979c4d82518fda1ea8182a7368da152b6bd38088
Cr-Commit-Position: refs/heads/master@{#433655}

Powered by Google App Engine
This is Rietveld 408576698