Hi Soren

I think I'd like to finally implement ProcessDebuggerRequests API call;
http://code.google.com/p/v8/issues/detail?id=554

I see two use-cases:
1. It should make user's life easier (currently you have to compile script
with "void(0)" text, ignore "afterCompile" event, keep reference to script
and ignore the script from list of scripts; it's better to implement this
one time for all).

2. I will need ProcessDebuggerRequests call in several places in
test-debug.cc: notification handler setting should become completely
thread-safe and it cannot call Debugger::Unload anymore; it is used as
thread-safe right now, which is not safe; I'm going to
use ProcessDebuggerRequests to make V8 react on setting notification handler
to NULL.

Do you have an advice how I could implement
 Debugger::ProcessDebuggerRequests  properly? It should enter V8 for some
trivial task and let V8 process pending debug messages. It should use
caller's V8 context. Currently I'm thinking about lazily adding global
function to current context and simply calling it; the function should
return "void(0)" and I think I should try to make its script hidden.
Does it seem good or bad?

Thanks,
Peter
-- 
v8-dev mailing list
[email protected]
http://groups.google.com/group/v8-dev

Reply via email to