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

Unified 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/debug/debug.h ('k') | src/inspector/debugger-script.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/debug/debug-interface.h
diff --git a/src/debug/debug-interface.h b/src/debug/debug-interface.h
index e6d178095868a293cae1a1390067b158e8280c3f..0577ecc4ca2b5980aaa979da0e74831b9a2bea47 100644
--- a/src/debug/debug-interface.h
+++ b/src/debug/debug-interface.h
@@ -127,6 +127,17 @@ class DebugInterface {
*/
static void ChangeBreakOnException(Isolate* isolate,
ExceptionBreakState state);
+
+ enum StepAction {
+ StepOut = 0, // Step out of the current function.
+ StepNext = 1, // Step to the next statement in the current function.
+ StepIn = 2, // Step into new functions invoked or the next statement
+ // in the current function.
+ StepFrame = 3 // Step into a new frame or return to previous frame.
+ };
+
+ static void PrepareStep(Isolate* isolate, StepAction action);
+ static void ClearStepping(Isolate* isolate);
};
} // namespace v8
« 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