I patched the source and solved it.
I received response for "scripts" request.
Thanks for your concerned.

Thanks.

On 10월14일, 오후2시37분, Vincent Han <[email protected]> wrote:
> Hi.
>
> I found something strange spot in Debug-debugger.js file
>
> ScriptTypeFlag in scriptsRequest_ function.
> When I tested without it, I received the response but body is empty.
> Nevertheless, forced termination is not occurred.
> ======================================================
> request:   {"seq":1,"type":"request","command":"scripts","arguments":
> {"includeSource":true,"types":4}}
> response: {"seq":2,"request_seq":
> 1,"type":"response","command":"scripts","success":true,"body":
> [],"refs":[],"running":true}}
> ======================================================
>
> ScriptTypeFlag is like below, right?
> function ScriptTypeFlag(type) {
>   return (1 << type);
>
> }
>
> I can't add log source to js file in V8, so I can't see what value is
> in there.
> I think that function got no problem.
> But why forced termination is occurred when using that function?
>
> On 10월11일, 오후2시58분, Vincent Han <[email protected]> wrote:
>
>
>
> > Hi.
> > I sent reply to you but can't see that in this page.. so I write
> > again. ^_^;
>
> > I patched like below
> > Android_2.2\external\webkit\Android.mk: modified JAVASCRIPT_ENGINE =
> > v8
> > Android_2.2\external\v8\src\v8.cc: added
> > v8::Debug::EnableAgent("Test", 9222, false); in function
> > V8::Initialize
>
> > Test process
> > compile Android and launch Emulator.
> > start browser.
> > "cmd" → adb forward tcp:9222 tcp:9222 → telnet localhost 9222
> > type request
>
> > is there any mistake in my test procedure?
>
> > You suggested to me using d8.
> > is that only way to receive for the request "scripts"?
>
> > Thanks for reply and please help me...
>
> > On 10월8일, 오후5시01분, Søren Gjesse <[email protected]> wrote:
>
> > > Hi,
>
> > > This looks like a problem with V8/Android - it should be possible to all 
> > > the
> > > requests in the debugger protocol, and of cause a crash should not happen.
>
> > > Could you please provide some more information on this: In what setting 
> > > are
> > > you performing this experiment? Using a phone or using the emulator? What 
> > > is
> > > the patch you have applied?
>
> > > (and sorry for not replying to your request from a couple of weeks ago).
>
> > > Regards,
> > > Søren
>
> > > On Fri, Oct 8, 2010 at 08:56, Vincent Han <[email protected]> wrote:
> > > > Hi all
>
> > > > I'm studying V8 Debug protocol using Android 2.2
>
> > > > Protocol processing between Chromium and ChromDevTools is like
> > > > below(only v8 protocol)
> > > > >> request command:version
> > > > << response of req (version)
> > > > >> request command:scripts arg:includeSource
> > > > << response of req (scripts) body: source that requested...
>
> > > > so I modified the V8 source for EnableAgent and compile succeed.
> > > > Then I connect to V8 debugger and got right response for several
> > > > request like "version", "setbreakpoint", etc..
>
> > > > ===========================================================================
> > > >  ===========
> > > > >> request version
> > > > Content-Length:47
> > > > {"seq":0,"type":"request","command":"version"}
>
> > > > << response
> > > > Content-Length: 128
> > > > {"seq":0,"type":"response","command":"version","success":true,"body":
> > > > {"V8Version":"2.1.3 (candidate)"},"refs":[],"running":true}
>
> > > > ===========================================================================
> > > >  ===========
>
> > > > But Android Browser is forced terminated with SIGILL when I requested
> > > > "scripts" or "frame" request protocol.
>
> > > > ===========================================================================
> > > >  ===========
> > > > >> request scripts
> > > > Content-Length:48
> > > > {"seq":11,"type":"request","command":"scripts"}
>
> > > > lost host connection ==> browser is forced terminated
>
> > > > >> request scripts
> > > > Content-Length:93
> > > > {"seq":2,"type":"request","command":"scripts","arguments":
> > > > {"includeSource":true,"ids":[22]}}
>
> > > > lost host connection ==> browser is forced terminated
>
> > > > ===========================================================================
> > > >  ===========
>
> > > > I want to get sources like between Chromium and ChromDevTools.
>
> > > > Am I miss something?
>
> > > > Plz help me!
>
> > > > --
> > > > v8-users mailing list
> > > > [email protected]
> > > >http://groups.google.com/group/v8-users

-- 
v8-users mailing list
[email protected]
http://groups.google.com/group/v8-users

Reply via email to