| 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 109 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 120   }; | 120   }; | 
| 121 | 121 | 
| 122   /** | 122   /** | 
| 123    * Defines if VM will pause on exceptions or not. | 123    * Defines if VM will pause on exceptions or not. | 
| 124    * If BreakOnAnyExceptions is set then VM will pause on caught and uncaught | 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 | 125    * exception, if BreakOnUncaughtException is set then VM will pause only on | 
| 126    * uncaught exception, otherwise VM won't stop on any exception. | 126    * uncaught exception, otherwise VM won't stop on any exception. | 
| 127    */ | 127    */ | 
| 128   static void ChangeBreakOnException(Isolate* isolate, | 128   static void ChangeBreakOnException(Isolate* isolate, | 
| 129                                      ExceptionBreakState state); | 129                                      ExceptionBreakState state); | 
|  | 130 | 
|  | 131   enum StepAction { | 
|  | 132     StepOut = 0,   // Step out of the current function. | 
|  | 133     StepNext = 1,  // Step to the next statement in the current function. | 
|  | 134     StepIn = 2,    // Step into new functions invoked or the next statement | 
|  | 135                    // in the current function. | 
|  | 136     StepFrame = 3  // Step into a new frame or return to previous frame. | 
|  | 137   }; | 
|  | 138 | 
|  | 139   static void PrepareStep(Isolate* isolate, StepAction action); | 
|  | 140   static void ClearStepping(Isolate* isolate); | 
| 130 }; | 141 }; | 
| 131 | 142 | 
| 132 }  // namespace v8 | 143 }  // namespace v8 | 
| 133 | 144 | 
| 134 #endif  // V8_DEBUG_DEBUG_INTERFACE_H_ | 145 #endif  // V8_DEBUG_DEBUG_INTERFACE_H_ | 
| OLD | NEW | 
|---|