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

Issue 2912763005: Hit breakpoints in single line closures. (Closed)

Created:
3 years, 6 months ago by sivachandra
Modified:
3 years, 6 months ago
Reviewers:
siva
CC:
reviews_dartlang.org, vm-dev_dartlang.org
Target Ref:
refs/heads/master
Visibility:
Public.

Description

Hit breakpoints in single line closures. Before this change, breakpoints on lines like the following were not hit: var singleLineClosure = (int a, int b) => return a + b; The reason was that breakpoints were only resolved if their start token was contained within a function. Since that is not true for closure vars like in the above example, the breakpoints were never getting resolved. This change avoids such a problem by resolving breakpoints if the token range of the breakpoint overlaps the token range of a function. Fixes #29736 R=asiva@google.com Committed: https://github.com/dart-lang/sdk/commit/ffeaa4a46d0e8ff6a99dfc443ada9b9abd1e51d8

Patch Set 1 #

Total comments: 2

Patch Set 2 : Include other kinds of implicit functions to filter out #

Patch Set 3 : Enable a test with dartk which now passes #

Unified diffs Side-by-side diffs Delta from patch set Stats (+47 lines, -21 lines) Patch
M runtime/observatory/tests/service/service.status View 1 2 1 chunk +0 lines, -1 line 0 comments Download
M runtime/vm/debugger.cc View 1 7 chunks +39 lines, -16 lines 0 comments Download
M runtime/vm/debugger_test.cc View 1 2 chunks +8 lines, -4 lines 0 comments Download

Messages

Total messages: 8 (2 generated)
sivachandra
3 years, 6 months ago (2017-05-31 00:25:22 UTC) #2
siva
LGTM with one comment. https://codereview.chromium.org/2912763005/diff/1/runtime/vm/debugger.cc File runtime/vm/debugger.cc (right): https://codereview.chromium.org/2912763005/diff/1/runtime/vm/debugger.cc#newcode2728 runtime/vm/debugger.cc:2728: if (IsImplicitFunction(function)) { Should this ...
3 years, 6 months ago (2017-05-31 19:20:55 UTC) #3
sivachandra
https://codereview.chromium.org/2912763005/diff/1/runtime/vm/debugger.cc File runtime/vm/debugger.cc (right): https://codereview.chromium.org/2912763005/diff/1/runtime/vm/debugger.cc#newcode2728 runtime/vm/debugger.cc:2728: if (IsImplicitFunction(function)) { On 2017/05/31 19:20:54, siva wrote: > ...
3 years, 6 months ago (2017-05-31 20:16:47 UTC) #4
sivachandra
As discussed offline, enhanced the check to filter out implicit functions.
3 years, 6 months ago (2017-05-31 21:28:16 UTC) #5
siva
lgtm
3 years, 6 months ago (2017-05-31 21:51:43 UTC) #6
sivachandra
3 years, 6 months ago (2017-06-01 18:26:12 UTC) #8
Message was sent while issue was closed.
Committed patchset #3 (id:40001) manually as
ffeaa4a46d0e8ff6a99dfc443ada9b9abd1e51d8 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698