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

Issue 674823003: Add basic console support to Sky's inspector. (Closed)

Created:
6 years, 1 month ago by eseidel
Modified:
6 years, 1 month ago
CC:
abarth-chromium, esprehn, mojo-reviews_chromium.org, ojan
Base URL:
git@github.com:domokit/mojo.git@master
Project:
mojo
Visibility:
Public.

Description

Add basic console support to Sky's inspector. I think longer-term we want to instead fork InjectedScriptSource.js: http://blink.lc/blink/tree/Source/core/inspector/InjectedScriptSource.js since a ton of the "remote object" logic could be shared between Blink and Sky here. Since we're trying to talk exactly Chrome's inspector protocol we should start from the Blink JS as much as possible. That said, this is enough to get the Chrome devtools inspector to talk to sky and have the console handle basic commands! R=abarth@chromium.org Committed: https://chromium.googlesource.com/external/mojo/+/a1a9ad4d6967eb1d80f1a2d1513971d1f4004d6e

Patch Set 1 #

Patch Set 2 : No need to change abarth.sky now #

Total comments: 3
Unified diffs Side-by-side diffs Delta from patch set Stats (+169 lines, -8 lines) Patch
A sky/framework/inspector/indexeddb-agent.sky View 1 chunk +11 lines, -0 lines 0 comments Download
M sky/framework/inspector/inspector.sky View 3 chunks +6 lines, -3 lines 0 comments Download
M sky/framework/inspector/page-agent.sky View 1 chunk +22 lines, -5 lines 0 comments Download
A sky/framework/inspector/runtime-agent.sky View 1 chunk +130 lines, -0 lines 3 comments Download

Messages

Total messages: 8 (1 generated)
eseidel
6 years, 1 month ago (2014-10-29 00:31:58 UTC) #1
abarth-chromium
lgtm https://codereview.chromium.org/674823003/diff/20001/sky/framework/inspector/runtime-agent.sky File sky/framework/inspector/runtime-agent.sky (right): https://codereview.chromium.org/674823003/diff/20001/sky/framework/inspector/runtime-agent.sky#newcode15 sky/framework/inspector/runtime-agent.sky:15: } Should we factor these into a separate ...
6 years, 1 month ago (2014-10-29 00:58:25 UTC) #2
pfeldman
This guy implements Debugger and Runtime over raw v8: https://github.com/repenaxa/node-devtools/blob/master/server.js. It also forks InjectedScriptSource in ...
6 years, 1 month ago (2014-10-29 06:10:37 UTC) #3
pfeldman
https://codereview.chromium.org/674823003/diff/20001/sky/framework/inspector/runtime-agent.sky File sky/framework/inspector/runtime-agent.sky (right): https://codereview.chromium.org/674823003/diff/20001/sky/framework/inspector/runtime-agent.sky#newcode118 sky/framework/inspector/runtime-agent.sky:118: value = eval(params.expression); I need to get this running ...
6 years, 1 month ago (2014-10-29 06:12:36 UTC) #5
eseidel
Cool, thank you. Yeah, there is no attempt to isolate code in sky. The sky ...
6 years, 1 month ago (2014-10-29 15:41:41 UTC) #6
eseidel
Committed patchset #2 (id:20001) manually as a1a9ad4d6967eb1d80f1a2d1513971d1f4004d6e (presubmit successful).
6 years, 1 month ago (2014-10-29 15:47:14 UTC) #7
eseidel
6 years, 1 month ago (2014-10-29 15:48:29 UTC) #8
Message was sent while issue was closed.
On 2014/10/29 00:58:25, abarth wrote:
> lgtm
> 
>
https://codereview.chromium.org/674823003/diff/20001/sky/framework/inspector/...
> File sky/framework/inspector/runtime-agent.sky (right):
> 
>
https://codereview.chromium.org/674823003/diff/20001/sky/framework/inspector/...
> sky/framework/inspector/runtime-agent.sky:15: }
> Should we factor these into a separate module?  They don't seem specific to
the
> Runtime agent.
> 
>
https://codereview.chromium.org/674823003/diff/20001/sky/framework/inspector/...
> sky/framework/inspector/runtime-agent.sky:54: this.objectsById = [];
> this.objectsById = new Map() ?
> 
> Presumably you'll want to remove objects from this collection in the future.

Added some FIXMEs when landing.

Powered by Google App Engine
This is Rietveld 408576698