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

Unified Diff: include/v8-debug.h

Issue 2396193002: [inspector] move changeBreakpointState from debugger-script to native (Closed)
Patch Set: Created 4 years, 2 months 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') | no next file with comments »
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 6385a31d85e80f53e516b770812e6b0385ed5fe7..4e5991fa98d72a3dd7ffe6ade8b941336aed22fb 100644
--- a/include/v8-debug.h
+++ b/include/v8-debug.h
@@ -23,6 +23,12 @@ enum DebugEvent {
AsyncTaskEvent = 7,
};
+enum ExceptionBreakState {
+ NoBreakOnException = 0,
+ BreakOnUncaughtException = 1,
+ BreakOnAnyException = 2
+};
+
class V8_EXPORT Debug {
public:
/**
@@ -275,6 +281,15 @@ class V8_EXPORT Debug {
*/
static bool IsTailCallEliminationEnabled(Isolate* isolate);
static void SetTailCallEliminationEnabled(Isolate* isolate, bool enabled);
+
+ /**
+ * Defines if VM will pause on exceptions or not.
+ * If BreakOnAnyExceptions is set then VM will pause on caught and uncaught
+ * exception, if BreakOnUncaughtException is set then VM will pause only on
+ * uncaught exception, otherwise VM won't stop on any exception.
+ */
+ static void ChangeBreakOnException(Isolate* isolate,
dgozman 2016/10/06 21:48:43 I wonder whether we want new public C++ api for de
Yang 2016/10/07 14:05:55 The idea that I have, but not really communicated
+ ExceptionBreakState state);
};
« no previous file with comments | « no previous file | src/api.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698