OLD | NEW |
1 // Copyright 2016 the V8 project authors. All rights reserved. | 1 // Copyright 2016 the V8 project authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef V8_DEBUG_DEBUG_INTERFACE_H_ | 5 #ifndef V8_DEBUG_DEBUG_INTERFACE_H_ |
6 #define V8_DEBUG_DEBUG_INTERFACE_H_ | 6 #define V8_DEBUG_DEBUG_INTERFACE_H_ |
7 | 7 |
8 #include "include/v8-debug.h" | 8 #include "include/v8-debug.h" |
9 #include "include/v8.h" | 9 #include "include/v8.h" |
10 | 10 |
(...skipping 94 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
105 // happened yet. | 105 // happened yet. |
106 static void CancelDebugBreak(Isolate* isolate); | 106 static void CancelDebugBreak(Isolate* isolate); |
107 | 107 |
108 /** | 108 /** |
109 * Returns array of internal properties specific to the value type. Result has | 109 * Returns array of internal properties specific to the value type. Result has |
110 * the following format: [<name>, <value>,...,<name>, <value>]. Result array | 110 * the following format: [<name>, <value>,...,<name>, <value>]. Result array |
111 * will be allocated in the current context. | 111 * will be allocated in the current context. |
112 */ | 112 */ |
113 static MaybeLocal<Array> GetInternalProperties(Isolate* isolate, | 113 static MaybeLocal<Array> GetInternalProperties(Isolate* isolate, |
114 Local<Value> value); | 114 Local<Value> value); |
| 115 |
| 116 enum ExceptionBreakState { |
| 117 NoBreakOnException = 0, |
| 118 BreakOnUncaughtException = 1, |
| 119 BreakOnAnyException = 2 |
| 120 }; |
| 121 |
| 122 /** |
| 123 * Defines if VM will pause on exceptions or not. |
| 124 * If BreakOnAnyExceptions is set then VM will pause on caught and uncaught |
| 125 * exception, if BreakOnUncaughtException is set then VM will pause only on |
| 126 * uncaught exception, otherwise VM won't stop on any exception. |
| 127 */ |
| 128 static void ChangeBreakOnException(Isolate* isolate, |
| 129 ExceptionBreakState state); |
115 }; | 130 }; |
116 | 131 |
117 } // namespace v8 | 132 } // namespace v8 |
118 | 133 |
119 #endif // V8_DEBUG_DEBUG_INTERFACE_H_ | 134 #endif // V8_DEBUG_DEBUG_INTERFACE_H_ |
OLD | NEW |