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

Issue 204483002: Add 'breakpoint' similar to 'debugger' from JavaScript. (Closed)

Created:
6 years, 9 months ago by ahe
Modified:
5 years, 10 months ago
CC:
reviews_dartlang.org, Ivan Posva, Søren Gjesse, dgrove
Visibility:
Public.

Description

Add 'breakpoint' similar to 'debugger' from JavaScript.

Patch Set 1 #

Total comments: 5
Unified diffs Side-by-side diffs Delta from patch set Stats (+19 lines, -11 lines) Patch
A + dart/runtime/lib/breakpoint_patch.dart View 1 chunk +2 lines, -1 line 0 comments Download
M dart/runtime/lib/corelib_sources.gypi View 1 chunk +1 line, -0 lines 0 comments Download
M dart/sdk/lib/_internal/lib/core_patch.dart View 2 chunks +6 lines, -0 lines 0 comments Download
M dart/sdk/lib/_internal/lib/js_primitives.dart View 1 chunk +4 lines, -0 lines 0 comments Download
A + dart/sdk/lib/core/breakpoint.dart View 1 chunk +4 lines, -10 lines 5 comments Download
M dart/sdk/lib/core/core.dart View 1 chunk +1 line, -0 lines 0 comments Download
M dart/sdk/lib/core/corelib_sources.gypi View 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 17 (0 generated)
ahe
This adds the equivalent of "self halt" to dart:core.
6 years, 9 months ago (2014-03-19 12:59:44 UTC) #1
floitsch
Would it make more sense to add this to the isolate interface? For example: Isolate.self.waitForDebugger()
6 years, 9 months ago (2014-03-19 13:22:03 UTC) #2
ahe
On 2014/03/19 13:22:03, floitsch wrote: > Would it make more sense to add this to ...
6 years, 9 months ago (2014-03-19 13:38:57 UTC) #3
ahe
On 2014/03/19 13:38:57, ahe wrote: > On 2014/03/19 13:22:03, floitsch wrote: > > Would it ...
6 years, 9 months ago (2014-03-19 13:40:32 UTC) #4
Lasse Reichstein Nielsen
https://codereview.chromium.org/204483002/diff/1/dart/sdk/lib/core/breakpoint.dart File dart/sdk/lib/core/breakpoint.dart (right): https://codereview.chromium.org/204483002/diff/1/dart/sdk/lib/core/breakpoint.dart#newcode7 dart/sdk/lib/core/breakpoint.dart:7: /// Pause execution during debugging, a breakpoint. What does ...
6 years, 9 months ago (2014-03-20 08:25:39 UTC) #5
floitsch
Other small thought: if we made break() a function we could allow an optional argument ...
6 years, 9 months ago (2014-03-20 11:05:46 UTC) #6
ahe
On 2014/03/20 11:05:46, floitsch wrote: > Other small thought: if we made break() a function ...
6 years, 9 months ago (2014-03-20 11:59:15 UTC) #7
gbracha
On 2014/03/20 11:59:15, ahe wrote: > On 2014/03/20 11:05:46, floitsch wrote: > > Other small ...
6 years, 9 months ago (2014-03-20 15:51:46 UTC) #8
kevmoo
DBC https://codereview.chromium.org/204483002/diff/1/dart/sdk/lib/core/breakpoint.dart File dart/sdk/lib/core/breakpoint.dart (right): https://codereview.chromium.org/204483002/diff/1/dart/sdk/lib/core/breakpoint.dart#newcode9 dart/sdk/lib/core/breakpoint.dart:9: external void get breakpoint; DBC: Can we make ...
6 years, 9 months ago (2014-03-20 16:34:46 UTC) #9
ahe
On 2014/03/20 15:51:46, gbracha wrote: > On 2014/03/20 11:59:15, ahe wrote: > > On 2014/03/20 ...
6 years, 9 months ago (2014-03-20 16:46:07 UTC) #10
ahe
https://codereview.chromium.org/204483002/diff/1/dart/sdk/lib/core/breakpoint.dart File dart/sdk/lib/core/breakpoint.dart (right): https://codereview.chromium.org/204483002/diff/1/dart/sdk/lib/core/breakpoint.dart#newcode9 dart/sdk/lib/core/breakpoint.dart:9: external void get breakpoint; On 2014/03/20 16:34:46, kevmoo wrote: ...
6 years, 9 months ago (2014-03-20 16:50:47 UTC) #11
Lasse Reichstein Nielsen
I like the function-with-argument idea. For maximum flexibility, it should be an optional argument: breakpoint([Object ...
6 years, 9 months ago (2014-03-20 16:59:12 UTC) #12
ahe
On 2014/03/20 16:59:12, Lasse Reichstein Nielsen wrote: > I like the function-with-argument idea. > For ...
6 years, 9 months ago (2014-03-20 17:01:37 UTC) #13
floitsch
We could also put the focus on inspecting the returned value: bar(debug(foo())) bar(inspect(foo()) ... If ...
6 years, 9 months ago (2014-03-20 17:06:30 UTC) #14
kevmoo
On 2014/03/20 17:06:30, floitsch wrote: > We could also put the focus on inspecting the ...
6 years, 9 months ago (2014-03-20 17:33:01 UTC) #15
hausner
FWIW, also check dartbug.com/10536
6 years, 8 months ago (2014-03-31 23:52:14 UTC) #16
ahe
6 years, 8 months ago (2014-04-01 08:55:56 UTC) #17
On 2014/03/31 23:52:14, hausner wrote:
> FWIW, also check dartbug.com/10536

Thank you, I wasn't aware of that bug.

Powered by Google App Engine
This is Rietveld 408576698