Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(464)

Unified Diff: include/v8-debug.h

Issue 395013: Add DebugMessageDispatchHandler (Closed)
Patch Set: Created 11 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | src/api.cc » ('j') | test/cctest/test-debug.cc » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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
« no previous file with comments | « no previous file | src/api.cc » ('j') | test/cctest/test-debug.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698