Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(51)

Side by Side Diff: src/debug/debug-interface.h

Issue 2423153002: [inspector] migrate stepping related methods to debug-interface (Closed)
Patch Set: we use ClearStepping to cancel stepFrame Created 4 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « src/debug/debug.h ('k') | src/inspector/debugger-script.js » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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_
OLDNEW
« no previous file with comments | « src/debug/debug.h ('k') | src/inspector/debugger-script.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698