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

Issue 2671193002: [inspector] restore provisional breakpoints smarter (Closed)

Created:
3 years, 10 months ago by kozy
Modified:
3 years, 9 months ago
Reviewers:
alph, pfeldman, Yang
CC:
v8-reviews_googlegroups.com, devtools-reviews_chromium.org
Target Ref:
refs/pending/heads/master
Project:
v8
Visibility:
Public.

Description

[inspector] restore provisional breakpoints smarter For breakpoints which are set by setBreakpointByUrl(url:..) backend calculates source hint on first related breakpoints resolved event and then uses this hint to adjust breakpoint position in later arrived scripts with the same url or on page reload. Doc: https://docs.google.com/a/google.com/document/d/1VtWo_-jelzEXSNbjESGTtruZngzXgbHLexfTzxNlnjE/edit?usp=sharing BUG=chromium:688776 R=pfeldman@chromium.org, alph@chromium.org Review-Url: https://codereview.chromium.org/2671193002 Cr-Commit-Position: refs/heads/master@{#43493} Committed: https://chromium.googlesource.com/v8/v8/+/497dff7809901ac3319c01fb2f28ad807b708be5

Patch Set 1 #

Patch Set 2 : cleaner code, better test #

Patch Set 3 : better formatting #

Patch Set 4 : removed redundant NL #

Patch Set 5 : removed flaky breakpointId from test results #

Total comments: 9

Patch Set 6 : addressed comments #

Total comments: 5

Patch Set 7 : offset based approach #

Total comments: 2

Patch Set 8 : addressed comments #

Total comments: 16

Patch Set 9 : addressed comments #

Total comments: 14

Patch Set 10 : addressed comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+283 lines, -53 lines) Patch
M src/api.cc View 1 2 3 4 5 6 7 8 3 chunks +16 lines, -8 lines 0 comments Download
M src/debug/debug-interface.h View 1 2 3 4 5 6 7 1 chunk +2 lines, -3 lines 0 comments Download
M src/inspector/v8-debugger-agent-impl.h View 1 2 3 4 5 6 7 1 chunk +2 lines, -1 line 0 comments Download
M src/inspector/v8-debugger-agent-impl.cc View 1 2 3 4 5 6 7 8 9 17 chunks +86 lines, -19 lines 0 comments Download
M src/inspector/v8-debugger-script.h View 1 2 3 4 5 6 7 3 chunks +9 lines, -4 lines 0 comments Download
M src/inspector/v8-debugger-script.cc View 1 2 3 4 5 6 7 8 9 6 chunks +23 lines, -18 lines 0 comments Download
A test/inspector/debugger/restore-breakpoint.js View 1 2 3 4 5 6 7 8 9 1 chunk +69 lines, -0 lines 0 comments Download
A test/inspector/debugger/restore-breakpoint-expected.txt View 1 2 3 4 5 6 7 1 chunk +76 lines, -0 lines 0 comments Download

Messages

Total messages: 37 (21 generated)
kozy
Pavel and Alexei, please take a look.
3 years, 10 months ago (2017-02-07 00:52:57 UTC) #6
pfeldman
- I think offsets are important - I think lineEndings is expensive https://codereview.chromium.org/2671193002/diff/80001/src/inspector/v8-debugger-agent-impl.cc File src/inspector/v8-debugger-agent-impl.cc ...
3 years, 10 months ago (2017-02-07 19:13:05 UTC) #13
alph
https://codereview.chromium.org/2671193002/diff/80001/src/inspector/v8-debugger-agent-impl.cc File src/inspector/v8-debugger-agent-impl.cc (right): https://codereview.chromium.org/2671193002/diff/80001/src/inspector/v8-debugger-agent-impl.cc#newcode63 src/inspector/v8-debugger-agent-impl.cc:63: static const int kSourceLineHintToCheckOffsets[] = { On 2017/02/07 19:13:05, ...
3 years, 10 months ago (2017-02-07 22:22:30 UTC) #14
kozy
please take another look. https://codereview.chromium.org/2671193002/diff/80001/src/inspector/v8-debugger-agent-impl.cc File src/inspector/v8-debugger-agent-impl.cc (right): https://codereview.chromium.org/2671193002/diff/80001/src/inspector/v8-debugger-agent-impl.cc#newcode485 src/inspector/v8-debugger-agent-impl.cc:485: if (!sourceLineHint.isEmpty()) { On 2017/02/07 ...
3 years, 10 months ago (2017-02-08 01:32:56 UTC) #15
alph
https://codereview.chromium.org/2671193002/diff/100001/src/inspector/v8-debugger-agent-impl.cc File src/inspector/v8-debugger-agent-impl.cc (right): https://codereview.chromium.org/2671193002/diff/100001/src/inspector/v8-debugger-agent-impl.cc#newcode475 src/inspector/v8-debugger-agent-impl.cc:475: int ajustLineNumber(V8DebuggerScript* script, int lineNumber, adjust https://codereview.chromium.org/2671193002/diff/100001/src/inspector/v8-debugger-script.cc File src/inspector/v8-debugger-script.cc ...
3 years, 10 months ago (2017-02-08 02:02:09 UTC) #16
pfeldman
ping
3 years, 10 months ago (2017-02-23 01:14:04 UTC) #17
kozy
please take another look! + Yang, for debug-interface review.
3 years, 10 months ago (2017-02-24 20:45:29 UTC) #19
Yang
https://codereview.chromium.org/2671193002/diff/120001/src/api.cc File src/api.cc (right): https://codereview.chromium.org/2671193002/diff/120001/src/api.cc#newcode9321 src/api.cc:9321: v8::debug::Location debug::Script::Position(int offset) const { Can we call these ...
3 years, 9 months ago (2017-02-27 13:07:45 UTC) #21
kozy
Pavel and Alexey, please take a look. https://codereview.chromium.org/2671193002/diff/120001/src/api.cc File src/api.cc (right): https://codereview.chromium.org/2671193002/diff/120001/src/api.cc#newcode9321 src/api.cc:9321: v8::debug::Location debug::Script::Position(int ...
3 years, 9 months ago (2017-02-27 20:43:24 UTC) #22
alph
https://codereview.chromium.org/2671193002/diff/140001/src/api.cc File src/api.cc (right): https://codereview.chromium.org/2671193002/diff/140001/src/api.cc#newcode9262 src/api.cc:9262: if (end.IsEmpty()) { nit: looks like a place for ...
3 years, 9 months ago (2017-02-27 22:01:29 UTC) #23
kozy
all done, please take another look. https://codereview.chromium.org/2671193002/diff/140001/src/api.cc File src/api.cc (right): https://codereview.chromium.org/2671193002/diff/140001/src/api.cc#newcode9262 src/api.cc:9262: if (end.IsEmpty()) { ...
3 years, 9 months ago (2017-02-27 23:16:36 UTC) #24
alph
lgtm https://codereview.chromium.org/2671193002/diff/160001/src/inspector/v8-debugger-agent-impl.cc File src/inspector/v8-debugger-agent-impl.cc (right): https://codereview.chromium.org/2671193002/diff/160001/src/inspector/v8-debugger-agent-impl.cc#newcode134 src/inspector/v8-debugger-agent-impl.cc:134: if (hint[i] == '\r' || hint[i] == '\n' ...
3 years, 9 months ago (2017-02-28 00:47:26 UTC) #25
kozy
thanks! all done. https://codereview.chromium.org/2671193002/diff/160001/src/inspector/v8-debugger-agent-impl.cc File src/inspector/v8-debugger-agent-impl.cc (right): https://codereview.chromium.org/2671193002/diff/160001/src/inspector/v8-debugger-agent-impl.cc#newcode134 src/inspector/v8-debugger-agent-impl.cc:134: if (hint[i] == '\r' || hint[i] ...
3 years, 9 months ago (2017-02-28 01:56:26 UTC) #26
Yang
On 2017/02/28 01:56:26, kozy wrote: > thanks! > > all done. > > https://codereview.chromium.org/2671193002/diff/160001/src/inspector/v8-debugger-agent-impl.cc > ...
3 years, 9 months ago (2017-02-28 10:30:43 UTC) #31
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/2671193002/180001
3 years, 9 months ago (2017-02-28 16:12:54 UTC) #34
commit-bot: I haz the power
3 years, 9 months ago (2017-02-28 16:14:35 UTC) #37
Message was sent while issue was closed.
Committed patchset #10 (id:180001) as
https://chromium.googlesource.com/v8/v8/+/497dff7809901ac3319c01fb2f28ad807b7...

Powered by Google App Engine
This is Rietveld 408576698