Index: runtime/vm/service/service.md |
diff --git a/runtime/vm/service/service.md b/runtime/vm/service/service.md |
index 1702ec9b97aa8cd165256f85f1a2c77b01d4f712..54bf2aeac7ad4b94b19b07d99476314b36f0fb3d 100644 |
--- a/runtime/vm/service/service.md |
+++ b/runtime/vm/service/service.md |
@@ -38,6 +38,7 @@ The Service Protocol uses [JSON-RPC 2.0][]. |
- [pause](#pause) |
- [removeBreakpoint](#removebreakpoint) |
- [resume](#resume) |
+ - [setExceptionPauseMode](#setexceptionpausemode) |
- [setLibraryDebuggable](#setlibrarydebuggable) |
- [setName](#setname) |
- [setVMName](#setvmname) |
@@ -624,6 +625,23 @@ Out | Single step until the current function exits |
See [Success](#success), [StepOption](#StepOption). |
+### setExceptionPauseMode |
+ |
+``` |
+Success setExceptionPauseMode(string isolateId, |
+ ExceptionPauseMode mode) |
+``` |
+ |
+The _setExceptionPauseMode_ RPC is used to control if an isolate pauses when |
+an exception is thrown. |
+ |
+mode | meaning |
+---- | ------- |
+None | Do not pause isolate on thrown exceptions |
+Unhandled | Pause isolate on unhandled exceptions |
+All | Pause isolate on all thrown exceptions |
+ |
+ |
### setLibraryDebuggable |
``` |
@@ -2032,6 +2050,19 @@ class Stack extends Response { |
} |
``` |
+### ExceptionPauseMode |
+ |
+``` |
+enum ExceptionPauseMode { |
+ None, |
+ Unhandled, |
+ All, |
+} |
+``` |
+ |
+An _ExceptionPauseMode_ indicates how the isolate pauses when an exception |
+is thrown. |
+ |
### StepOption |
``` |