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

Unified Diff: src/runtime.cc

Issue 2880011: Add debugger protocol request for setting global flags. (Closed)
Patch Set: After CR by Soren Created 10 years, 5 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/runtime.h ('k') | test/mjsunit/debug-enable-disable-breakpoints.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/runtime.cc
diff --git a/src/runtime.cc b/src/runtime.cc
index 22e80b33e0bbe253cd3b563619550cdf4c1920f9..b489fc110a0425aa9122155db1d0dbf7e0533092 100644
--- a/src/runtime.cc
+++ b/src/runtime.cc
@@ -9048,6 +9048,17 @@ static Object* Runtime_GetThreadDetails(Arguments args) {
}
+// Sets the disable break state
+// args[0]: disable break state
+static Object* Runtime_SetDisableBreak(Arguments args) {
+ HandleScope scope;
+ ASSERT(args.length() == 1);
+ CONVERT_BOOLEAN_CHECKED(disable_break, args[0]);
+ Debug::set_disable_break(disable_break);
+ return Heap::undefined_value();
+}
+
+
static Object* Runtime_GetBreakLocations(Arguments args) {
HandleScope scope;
ASSERT(args.length() == 1);
« no previous file with comments | « src/runtime.h ('k') | test/mjsunit/debug-enable-disable-breakpoints.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698