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

Issue 10875072: Enable/disable LiveEdit using the (C++) debug API. (Closed)

Created:
8 years, 3 months ago by Yang
Modified:
8 years, 3 months ago
Reviewers:
Peter Rybin, Erik Corry
CC:
v8-dev
Visibility:
Public.

Description

Enable/disable LiveEdit using the (C++) debug API. BUG= Committed: https://code.google.com/p/v8/source/detail?r=12472

Patch Set 1 #

Total comments: 3
Unified diffs Side-by-side diffs Delta from patch set Stats (+61 lines, -0 lines) Patch
M include/v8-debug.h View 1 chunk +8 lines, -0 lines 2 comments Download
M src/api.cc View 2 chunks +15 lines, -0 lines 0 comments Download
M src/debug.h View 2 chunks +3 lines, -0 lines 1 comment Download
M src/debug.cc View 1 chunk +1 line, -0 lines 0 comments Download
M src/runtime.cc View 12 chunks +12 lines, -0 lines 0 comments Download
M test/cctest/cctest.status View 1 chunk +3 lines, -0 lines 0 comments Download
M test/cctest/test-debug.cc View 1 chunk +19 lines, -0 lines 0 comments Download

Messages

Total messages: 6 (0 generated)
Yang
Please take a look.
8 years, 3 months ago (2012-08-27 09:31:45 UTC) #1
Peter Rybin
LGTM
8 years, 3 months ago (2012-08-27 16:02:12 UTC) #2
Erik Corry
LGTM. When the support is added to the embedder I would suggest changing the default ...
8 years, 3 months ago (2012-08-29 11:00:42 UTC) #3
Peter Rybin
Erik, gents, I think we need a view on how V8-based applications with DebugAgent (such ...
8 years, 3 months ago (2012-08-29 16:53:21 UTC) #4
Yang
On 2012/08/29 16:53:21, Peter Rybin wrote: > Erik, gents, > > I think we need ...
8 years, 3 months ago (2012-08-31 15:53:29 UTC) #5
Peter Rybin
8 years, 3 months ago (2012-08-31 16:00:33 UTC) #6
On 2012/08/31 15:53:29, Yang wrote:
> On 2012/08/29 16:53:21, Peter Rybin wrote:
> > Erik, gents,
> > 
> > I think we need a view on how V8-based applications with DebugAgent (such as
> > Node.JS) should handle this. Probably it would be sad if they silently lose
> > LiveEdit feature (well, not silently, I guess they are going to crash on
> > attempt).
> > Peter
> 
> I was under the impression that the LiveEdit feature does not come "for free"
> per se, but the embedder has to somehow adapt his application to use it (offer
> user interface, actively use the LiveEdit API etc.). If that's the case,
having
> LiveEdit disabled by default should be rather obvious to an embedder who
relies
> on it.

As far as I understand that's not the case. The embedder merely should enable
Debug Agent (see v8::EnableAgent) that supports v8 debug protocol via TCP port,
including LiveEdit. Then he can use a debug client, for example
http://code.google.com/p/chromedevtools

For example Node.JS does it and the sample lineprocessor.cc does it (no
liveedit-specific code is there).

Powered by Google App Engine
This is Rietveld 408576698