Index: include/v8-debug.h |
diff --git a/include/v8-debug.h b/include/v8-debug.h |
index 3c5c923b3d580971fe7e6f266fea0d86735428a1..d93e5543b46cc79a29d24d81fab6b9acc07985a8 100644 |
--- a/include/v8-debug.h |
+++ b/include/v8-debug.h |
@@ -188,6 +188,11 @@ class EXPORT Debug { |
*/ |
typedef void (*HostDispatchHandler)(); |
+ /** |
+ * Callback function for the host to ensure debug messages are processed. |
+ */ |
+ typedef void (*DebugMessageDispatchHandler)(); |
+ |
// Set a C debug event listener. |
static bool SetDebugEventListener(EventCallback that, |
Handle<Value> data = Handle<Value>()); |
@@ -211,6 +216,18 @@ class EXPORT Debug { |
static void SetHostDispatchHandler(HostDispatchHandler handler, |
int period = 100); |
+ /** |
+ * Register a callback function to be called when a debug message has been |
+ * received and is ready to be precessed. For the debug messages to be |
Søren Thygesen Gjesse
2009/11/18 08:40:57
precessed -> processed
|
+ * processed V8 needs to be entered, and in certain embedding scenarios this |
+ * callback can be used to make sure V8 is entered for the debug message to |
+ * be processed. Note that debug messages will only be processed if there is |
+ * a V8 break. This can happen automatically by using the option |
+ * --debugger-auto-break. |
+ */ |
+ static void SetDebugMessageDispatchHandler( |
+ DebugMessageDispatchHandler handler); |
+ |
/** |
* Run a JavaScript function in the debugger. |
* \param fun the function to call |