Hi,

This looks OK. Do you have the option --debugger-auto-break enabled?

Regards,
Søren


On Thu, Apr 18, 2013 at 4:56 AM, 段长明 <[email protected]> wrote:

> Hello Sir,
>  Could you tell me v8 debug support multiple isolates or not?
>
> Related: Issue 1931 <http://code.google.com/p/v8/issues/detail?id=1931>.
> I try to pass new isolate to the handler, but not success,
> the following is test code,
>
> v8::Isolate* g_isolate;
> v8::Persistent<v8::Context> debug_message_context;
>
> void DispatchDebugMessages()
> {
>       v8::Isolate::Scope iscope(g_isolate);
>       v8::HandleScope scope;
>       v8::Context::Scope cscope(debug_message_context);
>       v8::Debug::ProcessDebugMessages();
> }
>
> class Thread : public v8::internal::Thread {
> public:
>       Thread() : Thread("Thread") { }
>       void Run()
>       {
>               g_isolate= v8::Isolate::New();
>               v8::Locker locker(g_isolate);
>
>               v8::Isolate::Scope iscope(g_isolate);
>               v8::HandleScope scope;
>
>               v8::Persistent<v8::Context> context = Context::New();
>               v8::Context::Scope cscope(context);
>
>               debug_message_context = 
> v8::Persistent<v8::Context>::New(context);
>               v8::Debug::EnableAgent("ThreadDebug", 9222, true);
>               
> v8::Debug::SetDebugMessageDispatchHandler(DispatchDebugMessages, false);      
>   
>
>               ...
>               ...
>       }
> };
>
> Thanks
>
> Mr, Duan
>
>
> 来自网易手机号码邮箱了解更多 <http://shouji.163.com>
>

-- 
-- 
v8-dev mailing list
[email protected]
http://groups.google.com/group/v8-dev
--- 
You received this message because you are subscribed to the Google Groups 
"v8-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to