Index: src/debug/debug-interface.h |
diff --git a/src/debug/debug-interface.h b/src/debug/debug-interface.h |
index bc72dd8aab171013e4141a5a4da2350181ebab9d..e6d178095868a293cae1a1390067b158e8280c3f 100644 |
--- a/src/debug/debug-interface.h |
+++ b/src/debug/debug-interface.h |
@@ -112,6 +112,21 @@ class DebugInterface { |
*/ |
static MaybeLocal<Array> GetInternalProperties(Isolate* isolate, |
Local<Value> value); |
+ |
+ enum ExceptionBreakState { |
+ NoBreakOnException = 0, |
+ BreakOnUncaughtException = 1, |
+ BreakOnAnyException = 2 |
+ }; |
+ |
+ /** |
+ * 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, |
+ ExceptionBreakState state); |
}; |
} // namespace v8 |