Hi thanks for reply.

Thanks.
I tried without SetDebugMessageDispatchHandler.
Then it run as I want to.

Anyway I set the callback in SetDebugMessageDispatchHandler that call
function "v8::Debug::ProcessDebugMessages()".
I think the function that set by SetDebugMessageDispatchHandler process
request.
Am I wrong?
What does the callback set by SetDebugmessageDispatchHandler doing?

Anyway Thanks a lot.


2010/9/15 Søren Gjesse <[email protected]>

> Hi,
>
> What does the callback set by SetDebugMessageDispatchHandler actually do? Have
> you tried without setting a debug message dispatch handler? Without that you
> might have to perform some actions on the page triggering JavaScript for the
>  debug request to be processed.
>
> I guess you know that instead of using telent you should probably use d8
> (with options --remote-debugger and --debugger-port=9222) or the Eclipse
> Debugger from Google Chrome Developer Tools (
> http://code.google.com/p/chromedevtools/), but that probably will not
> change the behaviour of the Android emulator.
>
> Regards,
> Søren
>
> On Wed, Sep 15, 2010 at 07:02, Vincent Han <[email protected]> wrote:
>
>> Hi all.
>> I'm testing V8 debug in Android emulator.
>>
>> I compiled Android versoin 2.2 and run emulator.
>> ofcource, I inserted EnableAgnent and SetDebugMessageDispatchHandler
>> source in V8.cc for V8 debug
>>
>> 1. start emulator and launch browser
>> 2. cmd -> adb forward tcp:9222 tcp:9222 and telnet localhost 9222
>>
>> After this following, I can see the message below
>> --------------------------------------------------------------
>> Type: connect
>> V8-Version: 2.1.3 (candidate)
>> Protocol-Version: 1
>> Embedding-Host: NAME
>> Content-Length: 0
>> --------------------------------------------------------------
>>
>> That is received message from v8 in android.
>> then type the request message
>> --------------------------------------------------------------
>> Content-Length:47
>>
>> {"seq":0,"type":"request","command":"version"}
>> --------------------------------------------------------------
>>
>> then the response is coming.
>> --------------------------------------------------------------
>> Content-Length: 128
>>
>> {"seq":0,"type":"response","command":"version","success":true,"body":
>> {"V8Version":"2.1.3 (candidate)"},"refs":[],"running":true}
>> --------------------------------------------------------------
>>
>>
>> then click somewhere in android browser page for moving page,  it
>> doesn't work.
>> Browser in android emulator is forced terminated and command window
>> printed "disconnect local host"
>> I can see the message "Process 327 terminated by signal (11)" in
>> logcat.
>> Am I got some wrong process?
>> Or need some more code patches?
>>
>> If I didn't request v8 debug message, browser works fine.
>> only after send request debug message to v8 in android, break down is
>> occurred.
>>
>>
>> And some v8 debug request can occur break down too.
>> ex) script request: {"seq":
>> 2,"type":"request","command":"scripts","arguments":
>> {"includeSource":true,"ids":[0]}}
>>      that request message can't received response. just occur telnet
>> disconnecting and browser forced terminating
>>
>>
>> Please 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
>

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

Reply via email to