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

Issue 10442088: Bigger stepping granularity in debugging (Closed)

Created:
8 years, 6 months ago by hausner
Modified:
8 years, 6 months ago
Reviewers:
siva
CC:
reviews_dartlang.org, devoncarew, keertip
Visibility:
Public.

Description

Bigger stepping granularity in debugging - Single step now steps to a safe point on the next line. - Step into no longer steps into library code. - Each library has a flag that specifies whether one can step into its code. Later I will add an API to set the per-library flag. Currently it's set to true for the top-level library and to false for all other libraries. Committed: https://code.google.com/p/dart/source/detail?r=8173

Patch Set 1 #

Patch Set 2 : #

Patch Set 3 : #

Total comments: 11
Unified diffs Side-by-side diffs Delta from patch set Stats (+109 lines, -40 lines) Patch
M runtime/vm/dart_api_impl.cc View 2 chunks +2 lines, -0 lines 0 comments Download
M runtime/vm/debugger.h View 3 chunks +7 lines, -1 line 0 comments Download
M runtime/vm/debugger.cc View 1 2 8 chunks +89 lines, -39 lines 11 comments Download
M runtime/vm/object.h View 1 chunk +7 lines, -0 lines 0 comments Download
M runtime/vm/object.cc View 1 chunk +1 line, -0 lines 0 comments Download
M runtime/vm/raw_object.h View 1 chunk +1 line, -0 lines 0 comments Download
M runtime/vm/raw_object_snapshot.cc View 2 chunks +2 lines, -0 lines 0 comments Download

Messages

Total messages: 6 (0 generated)
hausner
8 years, 6 months ago (2012-05-30 17:32:15 UTC) #1
hausner
Ping.
8 years, 6 months ago (2012-05-31 15:04:25 UTC) #2
siva
LGTM http://codereview.chromium.org/10442088/diff/2003/runtime/vm/debugger.cc File runtime/vm/debugger.cc (right): http://codereview.chromium.org/10442088/diff/2003/runtime/vm/debugger.cc#newcode1045 runtime/vm/debugger.cc:1045: func_to_instrument = bpt->function(); This will be an issue ...
8 years, 6 months ago (2012-05-31 19:11:15 UTC) #3
hausner
Thanks. http://codereview.chromium.org/10442088/diff/2003/runtime/vm/debugger.cc File runtime/vm/debugger.cc (right): http://codereview.chromium.org/10442088/diff/2003/runtime/vm/debugger.cc#newcode1045 runtime/vm/debugger.cc:1045: func_to_instrument = bpt->function(); On 2012/05/31 19:11:15, asiva wrote: ...
8 years, 6 months ago (2012-05-31 20:04:14 UTC) #4
siva
http://codereview.chromium.org/10442088/diff/2003/runtime/vm/debugger.cc File runtime/vm/debugger.cc (right): http://codereview.chromium.org/10442088/diff/2003/runtime/vm/debugger.cc#newcode1045 runtime/vm/debugger.cc:1045: func_to_instrument = bpt->function(); I didn't mean recursive calls to ...
8 years, 6 months ago (2012-05-31 20:26:56 UTC) #5
hausner
8 years, 6 months ago (2012-05-31 20:32:27 UTC) #6
http://codereview.chromium.org/10442088/diff/2003/runtime/vm/debugger.cc
File runtime/vm/debugger.cc (right):

http://codereview.chromium.org/10442088/diff/2003/runtime/vm/debugger.cc#newc...
runtime/vm/debugger.cc:1094: func_to_instrument =
caller_frame->DartFunction().raw();
Ah, you are right. I will put this on my todo list.

On 2012/05/31 20:26:56, asiva wrote:
> Actually we won't step out to the previous activation frame, we will remain in
> the current activation frame.
> 
> On 2012/05/31 20:04:14, hausner wrote:
> > On 2012/05/31 19:11:15, asiva wrote:
> > > How does this work if we have recursive calls i.e we are trying to stepout
> > from
> > > the innermost invocation.
> > Recursive functions are not properly treated yet. We step out to the
previous
> > activation frame of the same function.
>

Powered by Google App Engine
This is Rietveld 408576698