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

Issue 10797033: Debugger API to enable/disable debugging of libraries (Closed)

Created:
8 years, 5 months ago by hausner
Modified:
8 years, 5 months ago
Reviewers:
regis
CC:
reviews_dartlang.org
Visibility:
Public.

Description

Debugger API to enable/disable debugging of libraries Committed: https://code.google.com/p/dart/source/detail?r=9772

Patch Set 1 #

Total comments: 6

Patch Set 2 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+112 lines, -2 lines) Patch
M runtime/bin/dbg_connection.h View 1 chunk +1 line, -0 lines 0 comments Download
M runtime/bin/dbg_connection.cc View 1 3 chunks +41 lines, -1 line 0 comments Download
M runtime/include/dart_debugger_api.h View 1 chunk +22 lines, -0 lines 0 comments Download
M runtime/vm/debugger_api_impl.cc View 1 chunk +32 lines, -0 lines 0 comments Download
M tools/ddbg.dart View 4 chunks +16 lines, -1 line 0 comments Download

Messages

Total messages: 3 (0 generated)
hausner
8 years, 5 months ago (2012-07-19 20:19:22 UTC) #1
regis
LGTM with comments. Also, how did you manage to get codereview.chromium.org instead of the usual ...
8 years, 5 months ago (2012-07-19 20:40:57 UTC) #2
hausner
8 years, 5 months ago (2012-07-19 22:50:35 UTC) #3
Thank you!

http://codereview.chromium.org/10797033/diff/1/runtime/bin/dbg_connection.cc
File runtime/bin/dbg_connection.cc (right):

http://codereview.chromium.org/10797033/diff/1/runtime/bin/dbg_connection.cc#...
runtime/bin/dbg_connection.cc:547: bool is_debuggable= false;
On 2012/07/19 20:40:57, regis wrote:
> missing space

Done.

http://codereview.chromium.org/10797033/diff/1/runtime/bin/dbg_connection.cc#...
runtime/bin/dbg_connection.cc:846: } else if (strcmp(enable_request, "true")) {
On 2012/07/19 20:40:57, regis wrote:
> You probably mean
>  } else if (strcmp(enable_request, "false") == 0) {

Yes. Ironically my faulty code also works if the input is "false": strcmp
returns non-null and the branch is taken. That's why my manual testing with
"true" and "false" worked... Nice catch!

http://codereview.chromium.org/10797033/diff/1/tools/ddbg.dart
File tools/ddbg.dart (right):

http://codereview.chromium.org/10797033/diff/1/tools/ddbg.dart#newcode141
tools/ddbg.dart:141: } else if (command == "slib" && args.length == 3) {
On 2012/07/19 20:40:57, regis wrote:
> This source file is not following our (C++) style guide. I guess we do not
> require parentheses in Dart sources as we do in C++ sources?
I don't see anything in the style guide that requires them. And I hope we don't
add it :-)

Powered by Google App Engine
This is Rietveld 408576698