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 <functional> | 8 #include <functional> |
9 | 9 |
10 #include "include/v8-debug.h" | 10 #include "include/v8-debug.h" |
(...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
76 }; | 76 }; |
77 | 77 |
78 /** | 78 /** |
79 * Defines if VM will pause on exceptions or not. | 79 * Defines if VM will pause on exceptions or not. |
80 * If BreakOnAnyExceptions is set then VM will pause on caught and uncaught | 80 * If BreakOnAnyExceptions is set then VM will pause on caught and uncaught |
81 * exception, if BreakOnUncaughtException is set then VM will pause only on | 81 * exception, if BreakOnUncaughtException is set then VM will pause only on |
82 * uncaught exception, otherwise VM won't stop on any exception. | 82 * uncaught exception, otherwise VM won't stop on any exception. |
83 */ | 83 */ |
84 void ChangeBreakOnException(Isolate* isolate, ExceptionBreakState state); | 84 void ChangeBreakOnException(Isolate* isolate, ExceptionBreakState state); |
85 | 85 |
| 86 void SetBreakPointsActive(Isolate* isolate, bool is_active); |
| 87 |
86 enum StepAction { | 88 enum StepAction { |
87 StepOut = 0, // Step out of the current function. | 89 StepOut = 0, // Step out of the current function. |
88 StepNext = 1, // Step to the next statement in the current function. | 90 StepNext = 1, // Step to the next statement in the current function. |
89 StepIn = 2 // Step into new functions invoked or the next statement | 91 StepIn = 2 // Step into new functions invoked or the next statement |
90 // in the current function. | 92 // in the current function. |
91 }; | 93 }; |
92 | 94 |
93 void PrepareStep(Isolate* isolate, StepAction action); | 95 void PrepareStep(Isolate* isolate, StepAction action); |
94 | 96 |
95 bool HasNonBlackboxedFrameOnStack(Isolate* isolate); | 97 bool HasNonBlackboxedFrameOnStack(Isolate* isolate); |
(...skipping 97 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
193 debug::Location SuspendedLocation(); | 195 debug::Location SuspendedLocation(); |
194 bool IsSuspended(); | 196 bool IsSuspended(); |
195 | 197 |
196 static v8::Local<debug::GeneratorObject> Cast(v8::Local<v8::Value> value); | 198 static v8::Local<debug::GeneratorObject> Cast(v8::Local<v8::Value> value); |
197 }; | 199 }; |
198 | 200 |
199 } // namespace debug | 201 } // namespace debug |
200 } // namespace v8 | 202 } // namespace v8 |
201 | 203 |
202 #endif // V8_DEBUG_DEBUG_INTERFACE_H_ | 204 #endif // V8_DEBUG_DEBUG_INTERFACE_H_ |
OLD | NEW |