Index: Source/core/inspector/InjectedScriptSource.js |
diff --git a/Source/core/inspector/InjectedScriptSource.js b/Source/core/inspector/InjectedScriptSource.js |
index 0cffd8726f444e947f1a73c93f5c1a98ee00b2d0..edd7bd86be013868a0e4f20d9527c5e3bdc68aed 100644 |
--- a/Source/core/inspector/InjectedScriptSource.js |
+++ b/Source/core/inspector/InjectedScriptSource.js |
@@ -1154,7 +1154,7 @@ function CommandLineAPI(commandLineAPIImpl, callFrame) |
CommandLineAPI.members_ = [ |
"$", "$$", "$x", "dir", "dirxml", "keys", "values", "profile", "profileEnd", |
"monitorEvents", "unmonitorEvents", "inspect", "copy", "clear", "getEventListeners", |
- "debug", "undebug", "table" |
+ "debug", "undebug", "monitor", "unmonitor", "table" |
]; |
/** |
@@ -1313,12 +1313,21 @@ CommandLineAPIImpl.prototype = { |
debug: function(fn) |
{ |
- InjectedScriptHost.setBreakpoint(fn); |
+ InjectedScriptHost.debugFunction(fn); |
}, |
undebug: function(fn) |
{ |
- InjectedScriptHost.removeBreakpoint(fn); |
+ InjectedScriptHost.undebugFunction(fn); |
+ }, |
+ |
+ monitor: function(fn) |
+ { |
+ InjectedScriptHost.monitorFunction(fn); |
+ }, |
+ |
+ unmonitor: function(fn) { |
+ InjectedScriptHost.unmonitorFunction(fn); |
}, |
table: function() |