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

Issue 2622253004: [inspector] introduced debug::SetBreakEventListener,SetExceptionEventListener (Closed)

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

Description

[inspector] introduced debug::SetBreakEventListener,SetExceptionEventListener Inspector is moved to per-event-type callbacks instead of general v8::debug::SetDebugEventListener. It allows to: - remove any usage of v8::Debug::EventDetails in debug-interface, - avoid redundant JS call on each event to get properties of event objects, - introduce better pure C++ API for these events later. BUG=v8:5510 R=yangguo@chromium.org,jgruber@chromium.org,dgozman@chromium.org Review-Url: https://codereview.chromium.org/2622253004 Cr-Commit-Position: refs/heads/master@{#42483} Committed: https://chromium.googlesource.com/v8/v8/+/f3dcdf886213b9bb36fe40fbde85d4fca6587fb7

Patch Set 1 #

Patch Set 2 : ready for review #

Total comments: 1

Patch Set 3 : addressed comments #

Patch Set 4 : fixed compilation #

Total comments: 10

Patch Set 5 : addressed comments #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+134 lines, -232 lines) Patch
M src/api.cc View 1 2 2 chunks +3 lines, -25 lines 0 comments Download
M src/debug/debug.h View 1 2 3 chunks +3 lines, -8 lines 0 comments Download
M src/debug/debug.cc View 1 2 3 4 9 chunks +55 lines, -34 lines 1 comment Download
M src/debug/debug-interface.h View 1 2 3 4 2 chunks +17 lines, -57 lines 0 comments Download
M src/inspector/debugger-script.js View 1 1 chunk +2 lines, -3 lines 0 comments Download
M src/inspector/debugger_script_externs.js View 1 1 chunk +0 lines, -7 lines 0 comments Download
M src/inspector/v8-debugger.h View 1 2 3 4 3 chunks +14 lines, -9 lines 0 comments Download
M src/inspector/v8-debugger.cc View 1 2 3 4 3 chunks +40 lines, -89 lines 0 comments Download

Depends on Patchset:

Messages

Total messages: 45 (25 generated)
kozy
Please take a look!
3 years, 11 months ago (2017-01-16 22:53:40 UTC) #4
jgruber
On 2017/01/16 22:53:40, kozyatinskiy wrote: > Please take a look! A general idea now that ...
3 years, 11 months ago (2017-01-17 08:21:09 UTC) #5
jgruber
lgtm + comment above https://codereview.chromium.org/2622253004/diff/40001/src/inspector/v8-debugger.cc File src/inspector/v8-debugger.cc (right): https://codereview.chromium.org/2622253004/diff/40001/src/inspector/v8-debugger.cc#newcode97 src/inspector/v8-debugger.cc:97: v8::debug::SetBreakEventListener(m_isolate, nullptr, nullptr); Double copy-and-paste
3 years, 11 months ago (2017-01-17 08:55:11 UTC) #6
kozy
On 2017/01/17 08:21:09, jgruber wrote: > On 2017/01/16 22:53:40, kozyatinskiy wrote: > > Please take ...
3 years, 11 months ago (2017-01-17 17:52:46 UTC) #10
jgruber
👍 nice! lgtm.
3 years, 11 months ago (2017-01-18 12:19:18 UTC) #17
dgozman
inspector lgtm. Keep it up! https://codereview.chromium.org/2622253004/diff/100001/src/debug/debug-interface.h File src/debug/debug-interface.h (right): https://codereview.chromium.org/2622253004/diff/100001/src/debug/debug-interface.h#newcode153 src/debug/debug-interface.h:153: virtual void OnAsyncTaskEvent(debug::PromiseDebugActionType type, ...
3 years, 11 months ago (2017-01-18 18:43:06 UTC) #18
kozy
thanks! all done. https://codereview.chromium.org/2622253004/diff/100001/src/debug/debug-interface.h File src/debug/debug-interface.h (right): https://codereview.chromium.org/2622253004/diff/100001/src/debug/debug-interface.h#newcode153 src/debug/debug-interface.h:153: virtual void OnAsyncTaskEvent(debug::PromiseDebugActionType type, int id) ...
3 years, 11 months ago (2017-01-18 21:20:07 UTC) #19
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/2622253004/120001
3 years, 11 months ago (2017-01-18 21:45:04 UTC) #25
commit-bot: I haz the power
Try jobs failed on following builders: v8_linux_dbg_ng on master.tryserver.v8 (JOB_FAILED, http://build.chromium.org/p/tryserver.v8/builders/v8_linux_dbg_ng/builds/19553) v8_linux_dbg_ng_triggered on master.tryserver.v8 (JOB_FAILED, ...
3 years, 11 months ago (2017-01-18 22:10:31 UTC) #27
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/2622253004/120001
3 years, 11 months ago (2017-01-18 22:35:55 UTC) #29
commit-bot: I haz the power
Try jobs failed on following builders: v8_linux_dbg_ng on master.tryserver.v8 (JOB_FAILED, http://build.chromium.org/p/tryserver.v8/builders/v8_linux_dbg_ng/builds/19555) v8_linux_dbg_ng_triggered on master.tryserver.v8 (JOB_FAILED, ...
3 years, 11 months ago (2017-01-18 22:43:45 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/2622253004/120001
3 years, 11 months ago (2017-01-18 22:47:45 UTC) #33
commit-bot: I haz the power
Try jobs failed on following builders: v8_linux_dbg_ng on master.tryserver.v8 (JOB_FAILED, http://build.chromium.org/p/tryserver.v8/builders/v8_linux_dbg_ng/builds/19557) v8_linux_dbg_ng_triggered on master.tryserver.v8 (JOB_FAILED, ...
3 years, 11 months ago (2017-01-18 22:54:15 UTC) #35
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/2622253004/120001
3 years, 11 months ago (2017-01-18 23:15:07 UTC) #37
commit-bot: I haz the power
Committed patchset #5 (id:120001) as https://chromium.googlesource.com/v8/v8/+/f3dcdf886213b9bb36fe40fbde85d4fca6587fb7
3 years, 11 months ago (2017-01-18 23:31:14 UTC) #40
Yang
https://codereview.chromium.org/2622253004/diff/120001/src/debug/debug.cc File src/debug/debug.cc (right): https://codereview.chromium.org/2622253004/diff/120001/src/debug/debug.cc#newcode1779 src/debug/debug.cc:1779: if (!non_inspector_listener_exists()) return; Let's implement the non-inspector listener through ...
3 years, 11 months ago (2017-01-19 08:55:49 UTC) #41
kozy
On 2017/01/19 08:55:49, Yang wrote: > https://codereview.chromium.org/2622253004/diff/120001/src/debug/debug.cc > File src/debug/debug.cc (right): > > https://codereview.chromium.org/2622253004/diff/120001/src/debug/debug.cc#newcode1779 > ...
3 years, 11 months ago (2017-01-20 06:03:02 UTC) #42
Yang
On 2017/01/20 06:03:02, kozyatinskiy wrote: > On 2017/01/19 08:55:49, Yang wrote: > > https://codereview.chromium.org/2622253004/diff/120001/src/debug/debug.cc > ...
3 years, 11 months ago (2017-01-20 06:21:13 UTC) #43
kozy
On 2017/01/20 06:21:13, Yang wrote: > On 2017/01/20 06:03:02, kozyatinskiy wrote: > > On 2017/01/19 ...
3 years, 11 months ago (2017-01-22 00:31:45 UTC) #44
Yang
3 years, 11 months ago (2017-01-22 06:10:10 UTC) #45
Message was sent while issue was closed.
On 2017/01/22 00:31:45, kozyatinskiy wrote:
> On 2017/01/20 06:21:13, Yang wrote:
> > On 2017/01/20 06:03:02, kozyatinskiy wrote:
> > > On 2017/01/19 08:55:49, Yang wrote:
> > > >
https://codereview.chromium.org/2622253004/diff/120001/src/debug/debug.cc
> > > > File src/debug/debug.cc (right):
> > > > 
> > > >
> > >
> >
>
https://codereview.chromium.org/2622253004/diff/120001/src/debug/debug.cc#new...
> > > > src/debug/debug.cc:1779: if (!non_inspector_listener_exists()) return;
> > > > Let's implement the non-inspector listener through this new API?
> > > 
> > > I'll implement it on next week.
> > 
> > Very cool. Thanks.
> 
> One question, would we like to still support v8::Debug::SetDebugEventListener
in
> v8-debug.h for C++ native callbacks? Looks like currently neither inspector
nor
> chromium nor Node.js use it.

our debug tests still do. Let's keep it until I adapt these tests

Powered by Google App Engine
This is Rietveld 408576698